aboutsummaryrefslogtreecommitdiffstats
path: root/bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash')
-rw-r--r--bash/.bashrc21
1 files changed, 10 insertions, 11 deletions
diff --git a/bash/.bashrc b/bash/.bashrc
index b2b81ab..3fe1503 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -6,7 +6,6 @@
6[[ $- != *i* ]] && return 6[[ $- != *i* ]] && return
7 7
8export PS1='[\d][\t]\u on \h\n\w => ' 8export PS1='[\d][\t]\u on \h\n\w => '
9export TERM="xterm-256color"
10 9
11export PATH="$PATH:$HOME/.local/bin" 10export PATH="$PATH:$HOME/.local/bin"
12export PATH="$PATH:$HOME/.local/usr/bin" 11export PATH="$PATH:$HOME/.local/usr/bin"
@@ -40,16 +39,6 @@ exists() {
40 hash $@ 2> /dev/null 39 hash $@ 2> /dev/null
41} 40}
42 41
43vim() {
44 if [[ -z $@ ]]; then
45 $usr/bin/vim
46 elif [[ -d $@ ]]; then
47 dir=$(pwd)
48 cd $@ && $usr/bin/vim && cd $dir
49 else
50 $usr/bin/vim $@
51 fi
52}
53 42
54if exists mpv; then 43if exists mpv; then
55 alias jblive='mpv rtmp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream' 44 alias jblive='mpv rtmp://videocdn-us.geocdn.scaleengine.net/jblive/live/jblive.stream'
@@ -59,6 +48,16 @@ fi
59 48
60if exists vim; then 49if exists vim; then
61 export EDITOR="vim" 50 export EDITOR="vim"
51 vim() {
52 if [[ -z $@ ]]; then
53 $usr/bin/vim
54 elif [[ -d $@ ]]; then
55 dir=$(pwd)
56 cd $@ && $usr/bin/vim && cd $dir
57 else
58 $usr/bin/vim $@
59 fi
60 }
62fi 61fi
63 62
64if exists go; then 63if exists go; then