My Bash Aliases

Posted By Weston Ganger

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:

Article Topic:Software Development - Linux

Date:August 03, 2015