Last active
October 7, 2022 17:04
-
-
Save funnierinspanish/19fc7e8c49b05711c7dd to your computer and use it in GitHub Desktop.
Aliases
This file contains 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
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