Skip to content

Instantly share code, notes, and snippets.

@funnierinspanish
Last active October 7, 2022 17:04
Show Gist options
  • Save funnierinspanish/19fc7e8c49b05711c7dd to your computer and use it in GitHub Desktop.
Save funnierinspanish/19fc7e8c49b05711c7dd to your computer and use it in GitHub Desktop.
Aliases
alias gss='git status'
alias gc='git add --all && git commit -am'
alias gl='git log'
alias gco='git checkout '
alias gresetrepo='git fetch origin && git reset --hard origin/master && git clean -f -d'
alias cls='printf "\033c"'
# An alias to set an environment variable depending on the user input
alias aliasvar="read -p 'Alias variable name: ' var; read -p 'Alias variable value: ' val; export \"\$var\"=\"\$val\""
# An alias that sets the value of a specific variable
alias iiset="read -p 'Enter board name: ' val; export BOARD=\"\$val\""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment