Skip to content

Instantly share code, notes, and snippets.

@giandoso
Last active July 9, 2022 10:23
Show Gist options
  • Save giandoso/ba753fd659e5d6877f9fac5a033dde7d to your computer and use it in GitHub Desktop.
Save giandoso/ba753fd659e5d6877f9fac5a033dde7d to your computer and use it in GitHub Desktop.
Minhas aliases para bash 😁
# github aliases
alias gs='git status -sb'
alias ga='git add'
alias gaa='git add .'
alias gc='git checkout '
alias gcm='git commit -m'
alias gpush='git push origin master'
alias gpull='git pull origin master'
alias gamend='git commit -a --amend -m'
alias glog='git log --all --graph --decorate --oneline --abbrev-commit'
alias gget='f(){ git clone [email protected]:giandoso/"$@"; unset -f f; }; f'
alias gup='clear && git log --reverse --pretty=%H master | grep -A 1 $(git rev-parse HEAD) | tail -n1 | xargs git checkout && git log --all --graph --decorate --oneline --abbrev-commit'
alias gdown='clear && git checkout HEAD^1 && git log --all --graph --decorate --oneline --abbrev-commit'
# xclip pipe clipboard
alias c='xclip -sel clip'
# venv start
alias venv='f(){ source ."$@"/bin/activate; unset -f f; }; f'
# start pycharm from bash
alias charm='g(){ nohup ./../../snap/pycharm-professional/252/bin/pycharm.sh "$@" &}; g'
# start datagrip from bash
alias datagrip='h(){ nohup ./../../usr/lib/datagrip/DataGrip-2021.2/bin/datagrip.sh "$@" &}; h'
# django manage
alias manage='python $VIRTUAL_ENV/../manage.py'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment