Linux

My Bash Aliases

Posted by Weston Ganger on August 03, 2015

I thought I would post my bash aliases. I will keep this updated as it changes.


alias bashrc='vim ~/.bashrc'
alias hosts='sudo vim /etc/hosts'
alias aliases="vim ~/.bash_aliases"
alias vimrc="vim ~/.vimrc"

alias nw='sudo nodewebkit'
alias suspend='sudo pm-suspend'
alias rm=trash # send files to trash instead of actually deleting
alias restart='sudo service nginx restart'
alias reload='sudo service nginx reload'
alias ll='ls -al --block-size=KB'
alias cp="cp -i" # always ask if you want to overwrite
alias bigvim="vim -u NONE" # loads vim with no plugins to speed up large files

alias update='sudo apt-get update;sudo apt-get -y upgrade;sudo apt-get autoremove'
alias update-suspend='sudo apt-get update;sudo apt-get -y upgrade;sudo apt-get autoremove;sudo pm-suspend'

alias vundle-install="vim +PluginInstall +qall"
alias vim-install="vim +PluginInstall +qall"
alias vundle-update="vim +PluginUpdate +qall"
alias vim-update="vim +PluginUpdate +qall"

alias rbenv-update="git -C ~/.rbenv/plugins/ruby-build pull"

# fixes screwed up fonts in gnome
alias reinstall-fonts="sudo apt-get install --reinstall --purge -y fontconfig fontconfig-config"

alias gits='git status'

#Ruby Dev
alias guard="bundle exec guard"
alias be='bundle exec'
alias bi='bundle install'
alias bu='bundle update'
alias rake='be rake'
alias migrate='be rake db:migrate'
alias rollback='be rake db:rollback'
alias seed='be rake db:seed'
alias rails='be rails'

#zeus aliases
alias zrails="zeus"
alias zrake="zeus rake"
alias zmigrate='zeus rake db:migrate'
alias zrollback='zeus rake db:rollback'
alias zseed='zeus rake db:seed'


Related External Links:


Posted in Linux and Tagged with alias bash linux 


Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts