small fixes

This commit is contained in:
Sheppy
2016-12-15 17:10:05 +01:00
parent 7037e563a7
commit de9ab19a0b

20
zshrc
View File

@@ -57,18 +57,18 @@ alias cp='cp -i'
alias ..='cd ..' alias ..='cd ..'
## LOCKS ## ## LOCKS ##
if [[ $HOST ~= atlantis* ]]; then if [[ $HOST =~ atlantis* ]]; then
alias i3lock="i3lock --image=/home/ik15ydit/.config/i3lock/bg.png" alias i3lock="i3lock --image=/home/ik15ydit/.config/i3lock/bg.png"
alias hlock="i3lock --image=/home/ik15ydit/.config/i3lock/bg.png -t" alias hlock="i3lock --image=/home/ik15ydit/.config/i3lock/bg.png -t"
else else
alias transparent_xlock="xlock --mode geometry --size 1x1" alias transparent_xlock="xlock -mode blank -geometry 1x1"
fi fi
## PACKAGE MANAGEMENT ## ## PACKAGE MANAGEMENT ##
alias psearch="apt-cache search" alias psearch="apt-cache search"
## GENERAL SHORTCUTS ## ## GENERAL SHORTCUTS ##
if [[ $HOST ~= atlantis* ]]; then if [[ $HOST =~ atlantis* ]]; then
alias gedit="gedit 2&>/dev/null &" alias gedit="gedit 2&>/dev/null &"
alias kpaint="kolourpaint 2&>/dev/null &" alias kpaint="kolourpaint 2&>/dev/null &"
alias telegram='ssh uni -t "/proj/ciptmp/ik15ydit/Zeug/Telegram/tg/bin/telegram-cli -k tg-server.pub"' alias telegram='ssh uni -t "/proj/ciptmp/ik15ydit/Zeug/Telegram/tg/bin/telegram-cli -k tg-server.pub"'
@@ -79,15 +79,17 @@ else
fi fi
## CONVERTING (cip has better defaults) ## ## CONVERTING (cip has better defaults) ##
if [[ $HOST ~= atlantis* ]]; then if [[ $HOST =~ atlantis* ]]; then
alias -g jpg2png="echo 'use convert [file_in.jpg] [file_out.png]'" alias -g jpg2png="echo 'use convert [file_in.jpg] [file_out.png]'"
fi fi
## MARKINGBIRD ## ## MARKINGBIRD ##
export PYTHONPATH=/local/python3-typing export PYTHONPATH=/local/python3-typing
if [[ $HOST =~ faui.* ]]; then
alias mabird="/proj/ik15ydit/reps/MarkingBird/MarkingBird.py"
## PATHS ## ## PATHS ##
if [[ $HOST ~= faui* ]]; then if [[ $HOST =~ faui* ]]; then
export JAVA_HOME="/local/java-1.8" export JAVA_HOME="/local/java-1.8"
fi fi
@@ -106,12 +108,12 @@ alias vimconf="vim ~/.vimrc"
alias sshconf="vim ~/.ssh/config" alias sshconf="vim ~/.ssh/config"
if [[ $HOST ~= atlantis* ]]; then if [[ $HOST =~ atlantis.* ]]; then
alias dual="xrandr --output DVI-I-2 --right-of DVI-I-1" alias dual="xrandr --output DVI-I-2 --right-of DVI-I-1"
alias shutown="/sbin/poweroff" alias shutown="/sbin/poweroff"
fi fi
if [[ $HOST ~= atlantislaptop ]]; then if [[ $HOST == "atlantislaptop" ]]; then
alias backlightctl="tee /sys/class/backlight/intel_backlight/brightness <<< $1" alias backlightctl="tee /sys/class/backlight/intel_backlight/brightness <<< $1"
fi fi
@@ -141,7 +143,7 @@ function key(){
} }
### GENE-SHIT ### ### GENE-SHIT ###
if [[ $HOST ~= atlantislaptop ]]; then if [[ $HOST == "atlantislaptop" ]]; then
GENE_BASE="/home/ik15ydit/bcarbeit/new_try" GENE_BASE="/home/ik15ydit/bcarbeit/new_try"
GENE_ROOT="/home/ik15ydit/bcarbeit/new_try/gene-setup" GENE_ROOT="/home/ik15ydit/bcarbeit/new_try/gene-setup"
INSTALL_DIR=$GENE_ROOT/local/bin INSTALL_DIR=$GENE_ROOT/local/bin
@@ -153,6 +155,6 @@ if [[ $HOST ~= atlantislaptop ]]; then
fi fi
### DISABLE MESSAGES ### ### DISABLE MESSAGES ###
if [[ $HOST ~= faui* ]]; then if [[ $HOST =~ faui.* ]]; then
mesg n mesg n
fi fi