############################################################################### # File .bash_aliases # Jonas Mitschang - jonen@mitschang.net ############################################################################### # ssh connections to servers alias picosrv='ssh jscharrenbach@picosrv1' # ls aliases alias l='ls -l' alias lla='ls -htlr -A' alias ll='ls -la' # change directory alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..' alias .....='cd ../../../..' alias p='cd -' alias pp='cd $HOME/projects/pico-erp_svn/' alias ele='cd $HOME/projects/elements/' ## go=move to directory and instantly list its contents go(){ cd $@ ls -l } #start tmux with 256 colors every time alias tmux="tmux -2" alias tmxa="tmux attach" # misc alias px="ps auxf" alias o="xdg-open" # pretty print json alias ppjson='python -c "import sys, json; print json.dumps(json.load(sys.stdin), sort_keys=True, indent=4)"' # meine lieblingsvertipper ;-) alias gerp=grep alias gpre=grep alias gre=grep alias grpe=grep alias gep=grep alias wcgrp=wcgrep alias wcgerp=wcgrep alias wcgrpe=wcgrep alias wcgre=wcgrep alias tial=tail alias snv=svn alias iv=vi alias vo=vi alias vu=vi alias chmkd=chmod alias pign=ping alias :q=exit alias :w=sync # other stuff # yes, i want to use rvim instead of less # alias less='rvim' alias eierabend='xflock4 ; systemctl suspend --no-wall' alias icingadoc='w3m http://mo/icinga/docs/en/index.html' alias updgrade='sudo aptitude update && sudo aptitude upgrade -y' # better passwords! alias apg='apg -M sncl -n 15 -m 10 -x 20' # pssh! alias pssh='parallel-ssh' # I don't do different rdp... alias rdp="LANG=de rdesktop -f -g 1920x1080 -d DOM -u jscharrenbach -k de -r disk:ws71=/home/jscharrenbach/ -r clipboard:PRIMARYCLIPBOARD" alias rdpwinadmin="LANG=de rdesktop -f -g 1920x1080 -d DOM -u winadmin -k de -r disk:ws71=/home/jscharrenbach/ -r clipboard:PRIMARYCLIPBOARD"