dotfiles/system/.alias

36 lines
1.1 KiB
Plaintext
Executable File

alias ll="ls -lah"
alias ld="ls -ld */"
alias lf="find . -maxdepth 1 -type f -exec ls -lah \"{}\" \;"
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
### Logout!
alias logout='sudo pkill -u $USER'
### SSH
alias ssh-keygen='ssh-keygen -t rsa -b 4096'
### Vagrant
alias vu='vagrant up --provision'
alias vp='vagrant provision'
alias vssh='vagrant ssh'
alias vd='vagrant destroy'
alias vc='vagrant destroy && vagrant up --provision'
alias vh="for i in `vagrant global-status | awk '/running/ {print $5}'`; do cd $i && vagrant halt; done"
### Git
alias git_clean='git fetch --all && git reset --hard origin/master'
### Lyrical
alias vpn_lyrical='cd /home/ahosking/lyrical/vpn &&sudo openvpn --config gw-udp-1194-ahosking-vpn.ovpn'
alias roles_fetch='r10k puppetfile install --puppetfile Puppetfile --moduledir ../../roles/'
alias roles_pull='for role in `ls ../../roles`; do echo "########" $role; echo `git -C ../../roles/$role pull origin master`; done'
## History
alias phgrep='cat ~/.persistent_history|grep --color'
alias hgrep='history|grep --color'
alias trimph='tail -20000 ~/.persistent_history | tee ~/.persistent_history'