-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
78 lines (62 loc) · 2.17 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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# ~/.bashrc: executed by bash(1) for non-login shells.
export LESS='-q'
export EDITOR=vim
# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='-G'
export HISTCONTROL=ignoredups
#eval `dircolors`
alias ls='ls $LS_OPTIONS'
alias l='ls $LS_OPTIONS -Fahl'
# Some more alias to avoid making mistakes:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias gg='git grep'
if [ `id -u` -eq 0 ]; then
export PATH="/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:/usr/bin/X11:/usr/games"
fi
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
fi
# set PATH so it includes user's private bin if it exists
if [ -d ~/.bin ] ; then
PATH=~/.bin:"${PATH}"
fi
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
# git svn externals
alias git-co-externals='git svn show-externals | grep "^/" | sed "s|^/\([^ ]*\)\(.*\) \(.*\)|(mkdir -p \1 \&\& cd \1 \&\& if [ -d .svn ]; then echo \"svn up \2 \1\" \&\& svn up \2 ; else echo \"svn co \2 \3 \1\" \&\& svn co \2 \3 . ; fi)|" | sh'
export LESS='-XFR'
# 256 colors
if [[ ${TMUX} == '' ]]
then
export TERM="xterm-256color"
else
export TERM="screen-256color"
fi
if [ -f ~/.bashrc_after ]; then
source ~/.bashrc_after
fi
if which brew >/dev/null; then
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
fi
# ensure $SSH_AUTH_SOCK is available at /tmp/ssh-agent-$USER-screen
if test $SSH_AUTH_SOCK && [ $SSH_AUTH_SOCK != "/tmp/ssh-agent-$USER-screen" ]
then
rm -f /tmp/ssh-agent-$USER-screen
ln -sf "$SSH_AUTH_SOCK" "/tmp/ssh-agent-$USER-screen"
fi
# webcam capture
alias webcamshot='vlc -I dummy v4l2:///dev/video0 --video-filter scene --no-audio --scene-path . --scene-prefix image_prefix --scene-format png vlc://quit --run-time=1'
export PYTHONSTARTUP=~/.pythonrc
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
export POWERLINE_ICONS=nerd-fonts
. ${HOME}/.config/powerline.bash
alias cal="ncal -B1 -A1 -Mbw"
. "$HOME/.cargo/env"