-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
65 lines (48 loc) · 1.78 KB
/
bashrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
echo "Loading ~/.bashrc"
# Short aliases
alias v='nvim'
alias vim='nvim'
alias vimold='/usr/bin/vim'
# Other aliases
alias ls='ls -GF'
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
# Node Version Manager
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# My personal scripts
export PATH="/Users/romek/Spaces/Scripts:$PATH"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/romek/Spaces/Projects/Freelancing/AccessMBCT/Code/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/romek/Spaces/Projects/Freelancing/AccessMBCT/Code/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/romek/Spaces/Projects/Freelancing/AccessMBCT/Code/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/romek/Spaces/Projects/Freelancing/AccessMBCT/Code/google-cloud-sdk/completion.zsh.inc'; fi
#
# Aliases
#
alias retox="rm -rf .tox && tox"
#
# Shortcut aliases
#
# Useful commands
alias ep="echo $PATH | tr : '\n'"
# Dotfiles
alias vb="vim ~/.bashrc"
alias sb="source ~/.bashrc"
# Git
alias g="git"
alias gb="git branch"
alias gbd="git branch -D"
alias gco="git checkout"
alias gcob="git checkout -b"
alias gl="git log"
alias gp="git pull"
alias gpo="git push origin"
alias gpsuo="git push --set-upstream origin"
# Django
alias m="python manage.py"
alias mrs="python manage.py runserver"
alias wmrs="watchmedo auto-restart --directory=templates/ --recursive -- ./manage.py runserver"
alias dtmrs="DISABLE_TOOLBAR=1 python manage.py runserver"
alias mm="python manage.py migrate"
alias mmm="python manage.py makemigrations"