Skip to content

Instantly share code, notes, and snippets.

@adrienlucas
Last active August 29, 2015 14:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adrienlucas/730bf9a646de5c497b2a to your computer and use it in GitHub Desktop.
Save adrienlucas/730bf9a646de5c497b2a to your computer and use it in GitHub Desktop.
My bash resources
#...
alias vgrt-up='(cd vagrant && vagrant up)'
alias vgrt-ssh='(cd vagrant && vagrant ssh)'
alias vgrt-status='(cd vagrant && vagrant status)'
alias vgrt-halt='(cd vagrant && vagrant halt)'
alias ssh-dev='ssh root@192.168.1.230'
alias mount-dev='sshfs root@192.168.1.230:/var/www /mnt/dev'
alias ssh-prod='ssh -p 822 nilobstat@192.168.1.210'
alias mount-prod='sshfs -p 822 nilobstat@192.168.1.210:/var/www /mnt/prod'
#...
# Alias definitions
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# Expose aliases
getaka() { grep -i "$@" ~/.bash_aliases;}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment