Last active
July 18, 2023 13:44
-
-
Save codesankalp/c26f990e54f152bf10611cd65dbd3b81 to your computer and use it in GitHub Desktop.
My bash aliases for running commands
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
# ------- | |
# Aliases | |
# ------- | |
# Python and Jupyter | |
alias jl="jupyter lab" | |
alias p="python3" | |
alias ipy="ipython" | |
alias actvenv="source venv/bin/activate" | |
# if linux then use xdg-open | |
if [[ "$OSTYPE" == "linux-gnu"* ]]; then | |
alias open="xdg-open" | |
fi | |
# GIT AND GITHUB | |
alias g="git" | |
alias ga="git add" | |
alias gc="git commit" | |
alias gpf="git push -f" | |
alias gpo="git push origin" | |
alias gpfo="git push -f origin" | |
alias gs="git status" | |
alias gp="git push" | |
alias gf="git fetch" | |
# Django | |
alias d="python3 manage.py" | |
alias dr="python3 manage.py runserver" | |
alias dmm="python3 manage.py makemigrations" | |
alias dm="python3 manage.py migrate" | |
alias dmmm="python3 manage.py makemigrations && python3 manage.py migrate" | |
alias dt="python3 manage.py test" | |
alias ds="python3 manage.py shell" | |
#openwisp | |
alias o="python3 tests/manage.py" | |
alias or="python3 tests/manage.py runserver" | |
alias ommm="python3 tests/manage.py makemigrations && python3 tests/manage.py migrate" | |
alias pie="pip install -e ." | |
#javascript and node | |
alias n="node" | |
alias y="yarn" | |
alias ys="yarn start" | |
#hackerrank | |
alias hr="cd ~/dev/hr" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment