dotfiles/system/.alias

36 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2017-03-05 19:27:18 +00:00
alias ll="ls -lah"
2017-02-27 06:49:09 +00:00
alias ld="ls -ld */"
2017-03-05 19:27:18 +00:00
alias lf="find . -maxdepth 1 -type f -exec ls -lah \"{}\" \;"
2017-02-27 06:49:09 +00:00
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
### Logout!
alias logout='sudo pkill -u $USER'
2018-05-29 04:12:48 +00:00
### SSH
alias ssh-keygen='ssh-keygen -t rsa -b 4096'
2017-02-27 06:49:09 +00:00
### Vagrant
2017-03-14 16:15:02 +00:00
alias vu='vagrant up --provision'
2017-02-27 06:49:09 +00:00
alias vp='vagrant provision'
alias vssh='vagrant ssh'
alias vd='vagrant destroy'
alias vc='vagrant destroy && vagrant up --provision'
2017-10-31 19:37:26 +00:00
alias vh="for i in `vagrant global-status | awk '/running/ {print $5}'`; do cd $i && vagrant halt; done"
2017-05-09 15:06:06 +00:00
### 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/'
2017-10-31 19:37:26 +00:00
alias roles_pull='for role in `ls ../../roles`; do echo "########" $role; echo `git -C ../../roles/$role pull origin master`; done'
2019-03-05 02:59:55 +00:00
## History
alias phgrep='cat ~/.persistent_history|grep --color'
alias hgrep='history|grep --color'
alias trimph='tail -20000 ~/.persistent_history | tee ~/.persistent_history'