Shell Aliases For Easy Directory Navigation #OneDevMinute

Ahmad Awais ⚡️ on September 21, 2018

🔥 #OneDevMinute is my new series on development tips in one minute. Wish me luck to keep it consistent on a daily basis. Your support means a lot ... [Read Full]
markdown guide
 
 

Here are some of the aliases I'm using, hopefully someone might find one useful.

# Shortcuts
alias db="cd ~/Documents/Dropbox"
alias dl="cd ~/Downloads"
alias dt="cd ~/Desktop"
alias p="cd ~/Projects"
alias g="git"

# List all files colorized in long format
alias l="ls -lF -G"

# List all files colorized in long format, including dot files
alias la="ls -laF -G"

# List only directories
alias lsd="ls -lF -G | grep --color=never '^d'"

# Always use color output for `ls`
alias ls="command ls -G"

# Always enable colored `grep` output
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
 
 

I never thought about the adding the typo as an alias, very neat idea.

alias cd..="cd .." # Typo addressed.
 
code of conduct - report abuse