addet editor environment variable
This commit is contained in:
parent
76213898bf
commit
b4220d657a
1 changed files with 12 additions and 1 deletions
13
.zshrc
13
.zshrc
|
@ -535,13 +535,24 @@ else
|
||||||
echo_error "No bc, so no math will work"
|
echo_error "No bc, so no math will work"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
_environment(){
|
||||||
|
if command_exists nvim; then
|
||||||
|
export EDITOR="nvim"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if command_exists ranger; then
|
||||||
|
export RANGER_LOAD_DEFAULT_RC="FALSE"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
main(){
|
main(){
|
||||||
get_packager
|
get_packager
|
||||||
_init
|
_init
|
||||||
_alias
|
_alias
|
||||||
_coding_
|
_coding_
|
||||||
|
_environment
|
||||||
}
|
}
|
||||||
if check_root; then
|
if check_root; then
|
||||||
main
|
main
|
||||||
fi
|
fi
|
||||||
echo "$bat"
|
# echo "$bat"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue