From bffabd904c09d82e04558500d658671b8eb360d5 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 29 Jul 2017 16:46:09 +0200 Subject: update --- zsh/.zsh/aliases.zsh | 17 +++++- zsh/.zsh/banner.zsh | 162 -------------------------------------------------- zsh/.zsh/banner.zsh_ | 162 ++++++++++++++++++++++++++++++++++++++++++++++++++ zsh/.zsh/keychain.zsh | 4 +- 4 files changed, 180 insertions(+), 165 deletions(-) delete mode 100755 zsh/.zsh/banner.zsh create mode 100755 zsh/.zsh/banner.zsh_ (limited to 'zsh') diff --git a/zsh/.zsh/aliases.zsh b/zsh/.zsh/aliases.zsh index 2016691..bbf057b 100755 --- a/zsh/.zsh/aliases.zsh +++ b/zsh/.zsh/aliases.zsh @@ -26,7 +26,7 @@ alias cp="cp -r -i" alias scp="scp -r" alias mkdir="mkdir -p" alias xsel="xsel -b" -alias fuck='sudo $(fc -ln -1)' +eval "$(thefuck --alias)" alias v="nvim" alias vi="nvim" alias vim="nvim" @@ -116,6 +116,13 @@ alias rssblog="newsbeuter -c /home/neodarz/.newsbeuter/blog.db -u /home/neodarz/ alias rsscode="newsbeuter -c /home/neodarz/.newsbeuter/code.db -u /home/neodarz/.newsbeuter/urls_code -C /home/neodarz/.newsbeuter/code_conf" alias rsshardware="newsbeuter -c /home/neodarz/.newsbeuter/hardware.db -u /home/neodarz/.newsbeuter/urls_hardware -C /home/neodarz/.newsbeuter/hardware_conf" alias rssactu="newsbeuter -c /home/neodarz/.newsbeuter/actu.db -u /home/neodarz/.newsbeuter/urls_actu -C /home/neodarz/.newsbeuter/actu_conf" +alias i3lock="i3lock-fancy" +alias weatherM="weather -k 0aebbf2d72f2b78f797b650a76c88401 -c -z 47.9955,0.1939" +alias weatherC="weather -k 0aebbf2d72f2b78f797b650a76c88401 -c -z 47.1778,-1.3416" +alias vpn="sh /home/neodarz/Apps/ipsec-vpn/vpn" +alias cal="ikhal" +alias cals="vdirsyncer sync" +alias mm="offlineimap && mutt" #█▓▒░ dumb tmux trix alias tsad="printf '\033k┐(T_T)┌\033\\'" @@ -159,3 +166,11 @@ function md() { function short() { curl -F"shorten=$*" https://0x0.st } + +if ! pgrep -u "$USER" ssh-agent > /dev/null; then + ssh-agent > ~/.ssh-agent-thing +fi +if [[ "$SSH_AGENT_PID" == "" ]]; then + eval "$(<~/.ssh-agent-thing)" +fi + diff --git a/zsh/.zsh/banner.zsh b/zsh/.zsh/banner.zsh deleted file mode 100755 index 9c2903b..0000000 --- a/zsh/.zsh/banner.zsh +++ /dev/null @@ -1,162 +0,0 @@ -# ██ -# ░██ -# ██████ ██████░██ -# ░░░░██ ██░░░░ ░██████ -# ██ ░░█████ ░██░░░██ -# ██ ░░░░░██░██ ░██ -# ██████ ██████ ░██ ░██ -# ░░░░░░ ░░░░░░ ░░ ░░ -# -# ▓▓▓▓▓▓▓▓▓▓ -# ░▓ author ▓ xero -# ░▓ code ▓ http://code.xero.nu/dotfiles -# ░▓ mirror ▓ http://git.io/.files -# ░▓▓▓▓▓▓▓▓▓▓ -# ░░░░░░░░░░ -# -#█▓▒░ pick a random number -_RAND=`shuf -i1-10 -n1` - -#█▓▒░ display a random ascii banner -case $_RAND in -1) -cat << X0 - : - |\\____.____ .______._______. - ._____| / _/__ _|_ / \\ |__ - \\__ | _/_ _) Y _ _/__| __ / - / _ / \\ | | /| / | - / |___(__ |__| |_ | - \\_____l __ \\_____/__ l______/\\______/ - \\_____/ \\______/ \\______/\\______/ - x0^b7^imp! - -X0 -;; -2) -cat << X0 - : - |\\_____.____ /\\_____.________. - ._____| / _/___ _/_ / \\ _ |__ - \\__ | _/_ _) Y _ _/__| / / - / _ / \\ | | /| | - / :.. |____(__ ..:: |__| ..:: |_ ..:: | - \\_____l \\______/ l_______/\\_______/ - x0^b7^imp! - -X0 -;; -3) -cat << X0 - . - ____/|______.____ /\\_____.________. - \\ | / _/___ _/_ / \\ _ |__ - \\_ | __/ _) Y _ _/__| / / - / _ \\ \\ | | /| | - _/ .: | .: \\__ ..:: |__| ..:: |_ ..:: | - \\_____l____ /\\______/ l_______/\\_______/ - \\/ x0^b7^imp! - -X0 -;; -4) -cat << X0 - ____ _ . . _ ___ - \\ \\ - ___/\\ _____ /\\______ ____/\\ ___/\\ - \\ _ \\/ .://.:\\____//_\\_. \\ /./__ \\ - \\\\ / // ___// .\\/ _// \\ / \\ - /.: \\ \\_. // _. \\/ .:\\/ / - __/____/\\ __\\/__ //______| /\\_______/__ - \\ \\/ \\/ |/x0^b7^imp! / - _\\ | /_ - \\ / - -X0 -;; -5) -cat << X0 - - ___/\\ _____ /\\______ ____/\\ ___/\\ - \\ _ \\/ .://.:\\____//_\\_. \\ /./__ \\ - \\\\ / // ___// .\\/ _// \\ / \\ - /.: \\ \\_. // _. \\/ .:\\/ / - /____/\\ __\\/__ //______| /\\_______/ - \\/ \\/ |/x0^b7^imp! - -X0 -;; -6) -cat << X0 - - _________/\\________________________________/\\_______ - \\ / /\\_______ /______ /\\/ \\__ \\ - \\_ / _/ / _/ /\\_ _/ _/ / / / / - _/ _ \\_/ ______/_/ _ \\_/ / / / - \\ \\ / \\_ / \\ / \\/ / - \\______\\ /\\___________/______\\ /\\_________/ - \\ / \\ / x0^b7^imp! - \\/ \\/ - -X0 -;; -7) -cat << X0 - - ________ /\\________________________________/\\_______ - \\ / _________ _______ __/ \\__ \\ - \\_ / _/ / _/ /\\_ _/ _/ / / / / - _/ _ \\_/ ______/_/ _ \\_/ / / / - \\ \\ / \\_ / \\ / \\/ / - \\______\\ /\\___________/______\\ /\\_________/ - \\ / \\ / x0^b7^imp! - \\/ \\/ - -X0 -;; -8) -cat << X0 - - :_____ _________ __________ _______. - ______| \\__/ ___ \\ _/ ___ \\ / |__ - / | __/\\_ |/ \\\\_ |/ \\/ : \\_ - / : \\ | /_____/| / _/ __. __/\\ - \\___ \\/ \\/ \\ _ |/ \\ < - / . \\_ \\_ \\ \\ / / / - / | _ _ \\ / / / - \\ ______|______/\\_____________/\\_____ \\ __/\\________ / / - \\/ ____|_____/ \\____________/\\_______ \\/ /\\_______\\/ / - \\/ : x0^b7^imp! \\/ \\/ - -X0 -;; -9) -cat << X0 - - :_____ _________ __________ _______. - ______| \\__/ ___ \\ _/ ___ \\ / |__ - / | __/\\_ |/ \\\\_ |/ \\/ : \\_ - / : \\ | /_____/| / _/ __. __/\\ - \\___ \\/ \\/ \\ _ |/ \\_/ - / . /_ \\_ \\ \\ / /\\ - / | _ _ \\ / / / - \\ ______|______///\\_________///\\_____ \\ __///\\______ / / - \\/ ____|_____/ \\_______/ \\_____ \\/ / \\____\\/ / - \\/ : x0^b7^imp! \\/ \\/ - -X0 -;; -10) -cat << X0 - _____ _____ - \\ \\ / /_________ ___________ _____________ - \\ \\ / /\\\\ / _\\ __ /_\\\\ __ / - _ __\\ \\/ /_ __/ / _/ _/ / __ / __ _ - // /\\ \\\\ __\\__/ \\ \\/ / / / - / / \\ \\ //____/ \\ \\ / / - / / \\_____\\_______/ \\ \\__________// - \\_____\\\\ //_____/ x0^b7^imp! - -X0 -;; -esac diff --git a/zsh/.zsh/banner.zsh_ b/zsh/.zsh/banner.zsh_ new file mode 100755 index 0000000..9c2903b --- /dev/null +++ b/zsh/.zsh/banner.zsh_ @@ -0,0 +1,162 @@ +# ██ +# ░██ +# ██████ ██████░██ +# ░░░░██ ██░░░░ ░██████ +# ██ ░░█████ ░██░░░██ +# ██ ░░░░░██░██ ░██ +# ██████ ██████ ░██ ░██ +# ░░░░░░ ░░░░░░ ░░ ░░ +# +# ▓▓▓▓▓▓▓▓▓▓ +# ░▓ author ▓ xero +# ░▓ code ▓ http://code.xero.nu/dotfiles +# ░▓ mirror ▓ http://git.io/.files +# ░▓▓▓▓▓▓▓▓▓▓ +# ░░░░░░░░░░ +# +#█▓▒░ pick a random number +_RAND=`shuf -i1-10 -n1` + +#█▓▒░ display a random ascii banner +case $_RAND in +1) +cat << X0 + : + |\\____.____ .______._______. + ._____| / _/__ _|_ / \\ |__ + \\__ | _/_ _) Y _ _/__| __ / + / _ / \\ | | /| / | + / |___(__ |__| |_ | + \\_____l __ \\_____/__ l______/\\______/ + \\_____/ \\______/ \\______/\\______/ + x0^b7^imp! + +X0 +;; +2) +cat << X0 + : + |\\_____.____ /\\_____.________. + ._____| / _/___ _/_ / \\ _ |__ + \\__ | _/_ _) Y _ _/__| / / + / _ / \\ | | /| | + / :.. |____(__ ..:: |__| ..:: |_ ..:: | + \\_____l \\______/ l_______/\\_______/ + x0^b7^imp! + +X0 +;; +3) +cat << X0 + . + ____/|______.____ /\\_____.________. + \\ | / _/___ _/_ / \\ _ |__ + \\_ | __/ _) Y _ _/__| / / + / _ \\ \\ | | /| | + _/ .: | .: \\__ ..:: |__| ..:: |_ ..:: | + \\_____l____ /\\______/ l_______/\\_______/ + \\/ x0^b7^imp! + +X0 +;; +4) +cat << X0 + ____ _ . . _ ___ + \\ \\ + ___/\\ _____ /\\______ ____/\\ ___/\\ + \\ _ \\/ .://.:\\____//_\\_. \\ /./__ \\ + \\\\ / // ___// .\\/ _// \\ / \\ + /.: \\ \\_. // _. \\/ .:\\/ / + __/____/\\ __\\/__ //______| /\\_______/__ + \\ \\/ \\/ |/x0^b7^imp! / + _\\ | /_ + \\ / + +X0 +;; +5) +cat << X0 + + ___/\\ _____ /\\______ ____/\\ ___/\\ + \\ _ \\/ .://.:\\____//_\\_. \\ /./__ \\ + \\\\ / // ___// .\\/ _// \\ / \\ + /.: \\ \\_. // _. \\/ .:\\/ / + /____/\\ __\\/__ //______| /\\_______/ + \\/ \\/ |/x0^b7^imp! + +X0 +;; +6) +cat << X0 + + _________/\\________________________________/\\_______ + \\ / /\\_______ /______ /\\/ \\__ \\ + \\_ / _/ / _/ /\\_ _/ _/ / / / / + _/ _ \\_/ ______/_/ _ \\_/ / / / + \\ \\ / \\_ / \\ / \\/ / + \\______\\ /\\___________/______\\ /\\_________/ + \\ / \\ / x0^b7^imp! + \\/ \\/ + +X0 +;; +7) +cat << X0 + + ________ /\\________________________________/\\_______ + \\ / _________ _______ __/ \\__ \\ + \\_ / _/ / _/ /\\_ _/ _/ / / / / + _/ _ \\_/ ______/_/ _ \\_/ / / / + \\ \\ / \\_ / \\ / \\/ / + \\______\\ /\\___________/______\\ /\\_________/ + \\ / \\ / x0^b7^imp! + \\/ \\/ + +X0 +;; +8) +cat << X0 + + :_____ _________ __________ _______. + ______| \\__/ ___ \\ _/ ___ \\ / |__ + / | __/\\_ |/ \\\\_ |/ \\/ : \\_ + / : \\ | /_____/| / _/ __. __/\\ + \\___ \\/ \\/ \\ _ |/ \\ < + / . \\_ \\_ \\ \\ / / / + / | _ _ \\ / / / + \\ ______|______/\\_____________/\\_____ \\ __/\\________ / / + \\/ ____|_____/ \\____________/\\_______ \\/ /\\_______\\/ / + \\/ : x0^b7^imp! \\/ \\/ + +X0 +;; +9) +cat << X0 + + :_____ _________ __________ _______. + ______| \\__/ ___ \\ _/ ___ \\ / |__ + / | __/\\_ |/ \\\\_ |/ \\/ : \\_ + / : \\ | /_____/| / _/ __. __/\\ + \\___ \\/ \\/ \\ _ |/ \\_/ + / . /_ \\_ \\ \\ / /\\ + / | _ _ \\ / / / + \\ ______|______///\\_________///\\_____ \\ __///\\______ / / + \\/ ____|_____/ \\_______/ \\_____ \\/ / \\____\\/ / + \\/ : x0^b7^imp! \\/ \\/ + +X0 +;; +10) +cat << X0 + _____ _____ + \\ \\ / /_________ ___________ _____________ + \\ \\ / /\\\\ / _\\ __ /_\\\\ __ / + _ __\\ \\/ /_ __/ / _/ _/ / __ / __ _ + // /\\ \\\\ __\\__/ \\ \\/ / / / + / / \\ \\ //____/ \\ \\ / / + / / \\_____\\_______/ \\ \\__________// + \\_____\\\\ //_____/ x0^b7^imp! + +X0 +;; +esac diff --git a/zsh/.zsh/keychain.zsh b/zsh/.zsh/keychain.zsh index 630ee9b..a4fe935 100755 --- a/zsh/.zsh/keychain.zsh +++ b/zsh/.zsh/keychain.zsh @@ -15,7 +15,7 @@ # ░░░░░░░░░░ # #█▓▒░ ssh keys -export SSH_KEY_PATH="~/.ssh/id_rsa" +#export SSH_KEY_PATH="~/.ssh/id_rsa" #█▓▒░ funtoo keychain -eval `keychain -q --eval ~/.ssh/id_rsa_mail` +#eval `keychain -q --eval ~/.ssh/id_rsa_mail` -- cgit v1.2.1