1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-16 07:26:51 +00:00

Set default editor to Helix in .zshrc and set default browser to Google Chrome Stable in .zsh/env.zsh

This commit is contained in:
Luna 2023-04-10 00:07:41 +02:00
parent 2e67569618
commit edc0a6ec12
2 changed files with 12 additions and 3 deletions

View file

@ -6,5 +6,3 @@ export devTools=""
# Uncomment if u want this env (default: $HOME/.local/npm"):
# export NPM_CONFIG_PREFIX=""
#export BROWSER="google-chrome-stable"

13
.zshrc
View file

@ -26,7 +26,18 @@ setopt hist_ignore_dups # ignore duplicated commands history list
setopt hist_ignore_space # ignore commands that start with space
setopt hist_verify # show command with history expansion to user before running it
export EDITOR=nvim
if iscmd helix; then
export EDITOR=helix
elif iscmd nvim; then
export EDITOR=nvim
else
export EDITOR=vim
fi
if iscmd google-chrome-stable; then
export BROWSER=google-chrome-stable
fi
export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.socket"
for f in $OTHER/*.zsh; do