Created
September 13, 2021 21:53
-
-
Save rmsj/43a427eb61b18f9c2dc31b549ecf82b1 to your computer and use it in GitHub Desktop.
[Aliases terminal] Cool aliases for terminal #git #terminal
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
function gito() { | |
if [ $# -eq 0 ] | |
then | |
echo "No arguments supplied" | |
return 1 | |
fi | |
git reset --hard && git clean -df && git pull && git checkout $1 && git pull | |
} | |
alias mkcd="foo(){ mkdir -p "$1"; cd "$1" }; foo" | |
alias myip="curl http://ipecho.net/plain; echo" | |
alias hs='history | grep' | |
alias nah="git reset --hard && git clean -df" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment