-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
39 lines (33 loc) · 1.22 KB
/
.aliases
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
#FILE LOCATION ~/.profile
#------- Editing of .dotfiles and refresh command -----------------------------
alias aliases="vim ~/.aliases && source ~/.aliases"
alias vimrc="vim ~/.vimrc"
alias profile="vim ~/.profile && source ~/.profile"
alias tmuxrc="vim ~/.tmux.conf"
alias zshrc="vim ~/.zshrc && source ~/.zshrc"
alias reload="source ~/.zshrc"
alias i3config="vim ~/.config/i3/config"
#------------------------------------------------------------------------------
#------- Utilities ------------------------------------------------------------
alias brews="brew list -1"
alias maildebug="python -m smtpd -n -c DebuggingServer localhost:1025"
alias serverdebug="python -m SimpleHTTPServer"
alias nat="cd ~/Projects/Nat"
#------------------------------------------------------------------------------
#------- Functions ------------------------------------------------------------
trash() {
mv $@ ~/.Trash
}
take () {
mkdir -p $1
cd $1
}
# Workaround for virtualenv and matplotlib.
function frameworkpython {
if [[ ! -z "$VIRTUAL_ENV" ]]; then
PYTHONHOME=$VIRTUAL_ENV /usr/local/bin/python "$@"
else
/usr/local/bin/python "$@"
fi
}
#------------------------------------------------------------------------------