diff options
| author | 2015-05-01 13:49:04 +0200 | |
|---|---|---|
| committer | 2015-05-01 13:49:04 +0200 | |
| commit | c6890911b108899a655214a7e59261ef36531122 (patch) | |
| tree | 0a5e42105ddf8addbee55100132241c401381e03 /bash | |
| parent | 19a579dd6c1669c7fdb0e28681fa88a038619e2d (diff) | |
| download | dotfiles-c6890911b108899a655214a7e59261ef36531122.tar.gz dotfiles-c6890911b108899a655214a7e59261ef36531122.tar.bz2 dotfiles-c6890911b108899a655214a7e59261ef36531122.zip | |
Removed TERM environment var from bashrc
Diffstat (limited to 'bash')
| -rw-r--r-- | bash/.bashrc | 21 |
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 | ||
| 8 | export PS1='[\d][\t]\u on \h\n\w => ' | 8 | export PS1='[\d][\t]\u on \h\n\w => ' |
| 9 | export TERM="xterm-256color" | ||
| 10 | 9 | ||
| 11 | export PATH="$PATH:$HOME/.local/bin" | 10 | export PATH="$PATH:$HOME/.local/bin" |
| 12 | export PATH="$PATH:$HOME/.local/usr/bin" | 11 | export 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 | ||
| 43 | vim() { | ||
| 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 | ||
| 54 | if exists mpv; then | 43 | if 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 | ||
| 60 | if exists vim; then | 49 | if 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 | } | ||
| 62 | fi | 61 | fi |
| 63 | 62 | ||
| 64 | if exists go; then | 63 | if exists go; then |
