-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mybashrc
37 lines (30 loc) · 1.14 KB
/
.mybashrc
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
#Aliases and functions
alias config='/usr/bin/git --git-dir=$HOME/.mycfg/ --work-tree=$HOME'
alias code='code-insiders'
alias mktags='ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .'
lxcsh() { lxc exec "$1" -- sudo --login --user ubuntu; }
# Add local bin folder to path
export PATH=$HOME/bin:$PATH
# Set up virtualenvwrapper
export WORKON_HOME=$HOME/.virtualenvs
export PROJECT_HOME=$HOME/dev/python
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then
source /usr/local/bin/virtualenvwrapper.sh
elif [ -f /usr/bin/virtualenvwrapper.sh ]; then
source /usr/bin/virtualenvwrapper.sh
else
echo "WARNING: could not find virtualenvwrapper.sh"
fi
source $HOME/.gruvbox_256palette.sh
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
export POWERLINE_PATH=$(python3 -c 'import powerline; print(powerline.__path__[0])')
source $POWERLINE_PATH/bindings/bash/powerline.sh
# Use vim keybindings on bash shell
set -o vi
# Emulate vim wildmode=longest:full:list,full on bash tab complete
bind 'TAB':menu-complete
bind "set show-all-if-ambiguous on"
bind "set menu-complete-display-prefix on"