DEV Community

Discussion on: What are your preferred bash aliases?

Collapse
crcastle profile image
Chris Castle • Edited on

The usuals:

alias g='git'
alias h='heroku'

A shortcut: c to be able to quickly jump to any of my local project directories inside my ~/Code directory.

Fish shell function:

function c
  if test -z $argv
    cd ~/Code
  else
    cd ~/Code/$argv
  end
end

Full source (including tab completion) installable using Fisher.

Also, vpn to connect to or disconnect from corporate (Cisco AnyConnect) VPN (source).