small changes

This commit is contained in:
Sheppy
2017-10-23 03:23:23 +02:00
parent 601498aec3
commit ca6d8e581d
3 changed files with 12 additions and 3 deletions

View File

@@ -245,3 +245,6 @@ for monitor in $(herbstclient list_monitors | cut -d: -f1) ; do
# start it on each monitor # start it on each monitor
"$panel" $monitor & "$panel" $monitor &
done done
touch ~/.config/cip_logins
echo $HOST >> ~/.config/cip_logins

0
xconf/.xinitrc Normal file → Executable file
View File

12
zshrc
View File

@@ -144,6 +144,9 @@ setopt nolistambiguous
## allow in word completion ## allow in word completion
setopt completeinword 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 ## i forgot what this does but completion doesnt work without it
autoload -Uz compinit; compinit #completioni autoload -Uz compinit; compinit #completioni
@@ -295,11 +298,14 @@ ssh_func(){
alias ssh="ssh_func" alias ssh="ssh_func"
### EXPERIMENTAL ### ### EXPERIMENTAL ###
## kill all cip sessions except this pc ##
genocide(){ genocide(){
while IFS='' read -r line || [[ -n "$line" ]]; do while IFS='' read -r line || [[ -n "$line" ]]; do
$(ssh $line) if [[ $line != $HOST ]]; then
done < "$HOME/.config/logins" ssh -q $line -t "pkill -u ik15ydit"
fi
done < "$HOME/.config/cip_logins"
#truncate -s 0 ~/.config/cip_logins
} }
export genocide export genocide
alias insurgency_status="ssh insurgency@atlantishq.de -t /usr/local/bin/insurgency_rcon status" alias insurgency_status="ssh insurgency@atlantishq.de -t /usr/local/bin/insurgency_rcon status"
setopt autocd