From edc0a6ec127a854689a0a3f27cb477efa922edb4 Mon Sep 17 00:00:00 2001 From: Luna Komorebi Date: Mon, 10 Apr 2023 00:07:41 +0200 Subject: [PATCH] Set default editor to Helix in .zshrc and set default browser to Google Chrome Stable in .zsh/env.zsh --- .zsh/env.zsh | 2 -- .zshrc | 13 ++++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/.zsh/env.zsh b/.zsh/env.zsh index 0c08f74..caaf882 100644 --- a/.zsh/env.zsh +++ b/.zsh/env.zsh @@ -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" \ No newline at end of file diff --git a/.zshrc b/.zshrc index c103159..bb67448 100644 --- a/.zshrc +++ b/.zshrc @@ -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