Last active
May 28, 2020 18:46
-
-
Save papidb/fa69ddba3d7bbab65c233c8c00139bce to your computer and use it in GitHub Desktop.
Helpful shell aliases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# aliases are basically nicknames | |
# they are used to represent commands or function with a string | |
alias babe="yarn" | |
# usage: | |
# babe --version | |
# babe add node-sass | |
# Print my public IP | |
alias myip="curl ipinfo.io/ip" | |
# myip | |
# check weather condition | |
alias rain='curl -4 http://wttr.in' | |
# functions are also a fancy way of running | |
# commands with arguments | |
rainn() { | |
curl -4 "http://wttr.in/$1" | |
} | |
# push git code | |
alias push="git push" | |
# list files and directory | |
alias ll="ls -la" | |
# Go up a directory | |
alias ..="cd .." | |
# Go up two directories | |
alias ...="cd .. && cd .." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can copy this and paste in your bash configuration file like (.bashrc or .zshrc).
Please drop your aliases. Thanks.