~gpanders/dotfiles

ref: 2da1dde5ea566f82ebe6532bc6d3b8670fd77ce8 dotfiles/zsh/.zprofile -rw-r--r-- 386 bytes
2da1dde5Greg Anders Note 'open' subcommand opens editor in NOTES_DIR when no argument given 1 year, 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Editor and pager
export EDITOR="vim"
export VISUAL="view"
export PAGER="less"

# Use neovim if available
if (( $+commands[nvim] )); then
  export EDITOR="nvim"
  export VISUAL="nvim"
fi

# Set browser based on OS type
if [[ "$OSTYPE" == darwin* ]]; then
  export BROWSER="open"
elif [[ "$OSTYPE" == linux-gnu ]]; then
  export BROWSER="xdg-open"
fi

source "${ZDOTDIR:-$HOME}"/.zpath