-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
58 lines (44 loc) · 1.27 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
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
complete -cf sudo
complete -cf man
shopt -s autocd
source /usr/share/git/completion/git-prompt.sh
alias ls='ls --color=auto'
alias df='dfc'
# PS1='[\u@\h \W]\$ '
PS1='\[\e[1;32m\][\u@\h \W$(__git_ps1)]\$\[\e[0m\] '
export EDITOR='vim'
export GOPATH=$HOME/go
export PATH=$PATH:$HOME/usr/bin:$HOME/go/bin
export LD_LIBRARY_PATH=$HOME/usr/lib
# Custom commands
alias suspend='systemctl suspend'
alias wifirecompile='sudo dkms autoinstall && sudo modprobe wl'
alias update='sudo pacman -Suy'
alias hibernate='systemctl hibernate'
alias lines='git ls-files | xargs wc -l'
alias cd..='cd ..'
alias blackscreen='xset s off && xset -dpms'
# PYTHONPATH
export PYTHONPATH=$PYTHONPATH:~/code/blocks/
export PYTHONPATH=$PYTHONPATH:~/code/fuel/
export PYTHONPATH=$PYTHONPATH:~/code/picklable-itertools/
export PYTHONPATH=$PYTHONPATH:~/code/Theano/
# Stanford NER
export STANFORD_MODELS=~/code/snips/stanford-ner-2014-06-16/
get_dir() {
printf "%s" $(pwd | sed "s:$HOME:~:")
}
get_sha() {
git rev-parse --short HEAD 2>/dev/null
}
# Turn off repeat keys
# xset r off
# Latex package manager
alias latex-package-manager='tllocalmgr'
bind -r '\C-s'
stty -ixon
. /home/eloi/code/torch/install/bin/torch-activate