DEV Community

Rohith Gilla
Rohith Gilla

Posted on • Updated on

What are your most used aliases?

These are my favourite aliases.

alias c="code .";
Enter fullscreen mode Exit fullscreen mode
alias life="cd ~/Desktop/Life";
Enter fullscreen mode Exit fullscreen mode

Life is the folder where I store all my codes :)

alias deleteDSFiles="find . -name '.DS_Store' -type f -delete"
Enter fullscreen mode Exit fullscreen mode

I guess this small command saves a lot of mac users.

alias yas="yarn start";
Enter fullscreen mode Exit fullscreen mode
alias ..='cd ..'
alias ...='cd ../..'
Enter fullscreen mode Exit fullscreen mode

P.S: There are more, but these are my fav and most used.

Please comment down your favourites or something which think would help others.

Discussion (6)

Collapse
vonheikemen profile image
Heiker

Most used are these.

alias ls='exa'
alias la='exa --git --header --long --all'
alias npr='pnpm run'

Then I have the tmux ones

alias tvi='tmux new-session -A -D -s vi'
alias tmus='tmux new-session -A -D -s music "$(which cmus)"'
alias pomd='tmux new-session -A -D -s pomodoro'
alias pmd-start='pomd gone -e "notify-send -u critical Pomodoro Timeout"'

My favorite is this one

alias -- -='cd -'

It looks funny but the alias is actually the last -. It takes me back to the last directory I visited.

Tools:

Collapse
gillarohith profile image
Rohith Gilla Author

Wow these are amazing ๐Ÿ™Œ
Iโ€™ll definitely check them out.
Thanks

Collapse
patarapolw profile image
Pacharapol Withayasakpunt • Edited

gi -- function gi() { curl -sLw n https://www.gitignore.io/api/$@ ;}

alias ..='cd ..'
alias ...='cd ../..'

These are just natural in zsh. I also use cd -. (I've just noticed that I can use simply - as well.)

Collapse
gillarohith profile image
Rohith Gilla Author

Awesome ๐Ÿ˜Ž

Collapse
caroso1222 profile image
Carlos Roso

Sharing some of mine here: carlosroso.com/pimp-your-bash-prof...

Collapse
gillarohith profile image
Rohith Gilla Author

They are really nice ๐Ÿ™Œ