addet editor environment variable

This commit is contained in:
pika 2024-10-22 09:14:48 +02:00
parent 76213898bf
commit b4220d657a

13
.zshrc
View file

@ -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"