feat(bash): EDITOR
This commit is contained in:
parent
cafc1a93f4
commit
59b3cc1a51
2 changed files with 8 additions and 1 deletions
|
|
@ -1,5 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
PATH=$HOME/.local/share/bin/:$PATH
|
||||
|
||||
function load() {
|
||||
if [ -f "$1" ]; then
|
||||
|
|
@ -7,6 +6,7 @@ function load() {
|
|||
fi
|
||||
}
|
||||
|
||||
load $HOME/.bashrc.d/env
|
||||
load $HOME/.bashrc.d/aliases
|
||||
load $HOME/.bashrc.d/git
|
||||
load $HOME/.bashrc.d/ps1
|
||||
|
|
|
|||
7
bash/.bashrc.d/env
Normal file
7
bash/.bashrc.d/env
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
export PATH=$HOME/.local/share/bin/:$PATH
|
||||
|
||||
if which vim >/dev/null 2>&1; then
|
||||
export EDITOR=vim
|
||||
fi
|
||||
Loading…
Add table
Reference in a new issue