diff --git a/herbstluftwm/autostart b/herbstluftwm/autostart index 9b3d701..858e4cc 100755 --- a/herbstluftwm/autostart +++ b/herbstluftwm/autostart @@ -245,3 +245,6 @@ for monitor in $(herbstclient list_monitors | cut -d: -f1) ; do # start it on each monitor "$panel" $monitor & done + +touch ~/.config/cip_logins +echo $HOST >> ~/.config/cip_logins diff --git a/xconf/.xinitrc b/xconf/.xinitrc old mode 100644 new mode 100755 diff --git a/zshrc b/zshrc index bb72c46..09d2c8e 100644 --- a/zshrc +++ b/zshrc @@ -144,6 +144,9 @@ setopt nolistambiguous ## allow in word completion setopt completeinword +## allow ommition of cd to change directory, use with caution ## +setopt autocd + ## i forgot what this does but completion doesnt work without it autoload -Uz compinit; compinit #completioni @@ -295,11 +298,14 @@ ssh_func(){ alias ssh="ssh_func" ### EXPERIMENTAL ### +## kill all cip sessions except this pc ## genocide(){ while IFS='' read -r line || [[ -n "$line" ]]; do - $(ssh $line) - done < "$HOME/.config/logins" + if [[ $line != $HOST ]]; then + ssh -q $line -t "pkill -u ik15ydit" + fi + done < "$HOME/.config/cip_logins" + #truncate -s 0 ~/.config/cip_logins } export genocide alias insurgency_status="ssh insurgency@atlantishq.de -t /usr/local/bin/insurgency_rcon status" -setopt autocd