From b9d4f7fcd076551c48d93839043dbacbeec2bb79 Mon Sep 17 00:00:00 2001 From: Patrick Simianer Date: Fri, 29 Apr 2016 07:10:19 +0200 Subject: zsh: fix/add completions, hostnames --- zsh/.zsh/completions/_crypt_disk | 4 ++++ zsh/.zsh/completions/_net-profile | 3 --- zsh/.zsh/completions/_net_profile | 4 ++++ zsh/.zshrc | 5 +++-- 4 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 zsh/.zsh/completions/_crypt_disk delete mode 100644 zsh/.zsh/completions/_net-profile create mode 100644 zsh/.zsh/completions/_net_profile diff --git a/zsh/.zsh/completions/_crypt_disk b/zsh/.zsh/completions/_crypt_disk new file mode 100644 index 0000000..656310e --- /dev/null +++ b/zsh/.zsh/completions/_crypt_disk @@ -0,0 +1,4 @@ +#compdef crypt-disk + +_arguments "1: :(mount umount)" + diff --git a/zsh/.zsh/completions/_net-profile b/zsh/.zsh/completions/_net-profile deleted file mode 100644 index 4804283..0000000 --- a/zsh/.zsh/completions/_net-profile +++ /dev/null @@ -1,3 +0,0 @@ -#compdef net_profile - -_arguments "1: :($(ls -1 ~/.net_profiles | cut -d '.' -f 1))" diff --git a/zsh/.zsh/completions/_net_profile b/zsh/.zsh/completions/_net_profile new file mode 100644 index 0000000..a4be43d --- /dev/null +++ b/zsh/.zsh/completions/_net_profile @@ -0,0 +1,4 @@ +#compdef net-profile + +_arguments "1: :($(ls -1 ~/.net_profiles | cut -d '.' -f 1))" + diff --git a/zsh/.zshrc b/zsh/.zshrc index 3b382e5..44dfca9 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -103,7 +103,7 @@ case `hostname` in HOSTCOLOR_BG=white HOSTCOLOR_FG=black ;; - x|pi*|*.uberspace.de) + bogues|curry|iverson|jordan|nowitzki|oneal|*.uberspace.de) HOSTCOLOR_BG=magenta HOSTCOLOR_FG=black ;; @@ -155,7 +155,7 @@ case `hostname` in umask u=rwx,g=rwx,o=rx alias tmux="tmux -f ~/.tmux.`hostname`.conf" ;; - x|pi*|*.uberspace.de) + bogues|curry|iverson|jordan|nowitzki|oneal|*.uberspace.de) PATH=/usr/lib/colorgcc/bin:$PATH ;; esac @@ -220,6 +220,7 @@ alias muxa='tmux attach -t' alias easy_install_home='easy_install --install-dir=$HOME/.local/lib/python/site-packages' alias pip_home='install --install-option="--install-purelib=~/.local/lib/python/site-packages"' alias npm_install_home='npm install -g --prefix ~/.local/lib/node' +alias castnow_home='castnow --address 192.168.0.5' alias my_ip='echo "$(curl 'https://api.ipify.org' 2>/dev/null)"' -- cgit v1.2.3