diff options
Diffstat (limited to 'bashrc')
| -rw-r--r-- | bashrc | 16 |
1 files changed, 11 insertions, 5 deletions
| @@ -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 | ||
| 8 | alias ls='ls --color=auto' | ||
| 9 | alias jblive='mpv rtmp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream 2> /dev/null &' | ||
| 10 | |||
| 8 | cd() { | 11 | cd() { |
| 9 | builtin cd "$@" && ls -A | 12 | builtin cd "$@" && ls -A |
| 10 | } | 13 | } |
| @@ -25,13 +28,16 @@ man() { | |||
| 25 | } | 28 | } |
| 26 | 29 | ||
| 27 | vim() { | 30 | vim() { |
| 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 | ||
| 31 | alias ls='ls --color=auto' | ||
| 32 | alias jblive='mpv rtmp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream 2> /dev/null &' | ||
| 33 | |||
| 34 | |||
| 35 | export PS1='[\d][\t]\u on \h\n\w => ' | 41 | export PS1='[\d][\t]\u on \h\n\w => ' |
| 36 | export GOPATH="$HOME/programming/go" | 42 | export GOPATH="$HOME/programming/go" |
| 37 | export PATH="$PATH:$GOPATH/bin" | 43 | export PATH="$PATH:$GOPATH/bin" |
