aboutsummaryrefslogtreecommitdiffstats
path: root/bashrc
diff options
context:
space:
mode:
Diffstat (limited to 'bashrc')
-rw-r--r--bashrc16
1 files changed, 11 insertions, 5 deletions
diff --git a/bashrc b/bashrc
index 8198b11..c736b50 100644
--- a/bashrc
+++ b/bashrc
@@ -5,6 +5,9 @@
5# If not running interactively, don't do anything 5# If not running interactively, don't do anything
6[[ $- != *i* ]] && return 6[[ $- != *i* ]] && return
7 7
8alias ls='ls --color=auto'
9alias jblive='mpv rtmp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream 2> /dev/null &'
10
8cd() { 11cd() {
9 builtin cd "$@" && ls -A 12 builtin cd "$@" && ls -A
10} 13}
@@ -25,13 +28,16 @@ man() {
25} 28}
26 29
27vim() { 30vim() {
28 (cd $@ && /usr/bin/vim) || /usr/bin/vim $@ 31 if [[ -z $@ ]]; then
32 /usr/bin/vim
33 elif [[ -d $@ ]]; then
34 dir=$(pwd)
35 cd $@ && /usr/bin/vim && cd $dir
36 else
37 /usr/bin/vim $@
38 fi
29} 39}
30 40
31alias ls='ls --color=auto'
32alias jblive='mpv rtmp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream 2> /dev/null &'
33
34
35export PS1='[\d][\t]\u on \h\n\w => ' 41export PS1='[\d][\t]\u on \h\n\w => '
36export GOPATH="$HOME/programming/go" 42export GOPATH="$HOME/programming/go"
37export PATH="$PATH:$GOPATH/bin" 43export PATH="$PATH:$GOPATH/bin"