Skip to content

Instantly share code, notes, and snippets.

@rmsj
Created September 13, 2021 21:53
Show Gist options
  • Save rmsj/43a427eb61b18f9c2dc31b549ecf82b1 to your computer and use it in GitHub Desktop.
Save rmsj/43a427eb61b18f9c2dc31b549ecf82b1 to your computer and use it in GitHub Desktop.
[Aliases terminal] Cool aliases for terminal #git #terminal
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