dotfiles/conf.d/zim/zshenv

60 lines
1.9 KiB
Plaintext
Raw Normal View History

2021-02-19 20:34:24 +00:00
# Start configuration added by Zim install {{{
#
# User configuration sourced by all invocations of the shell
#
# Define Zim location
: ${ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim}
# }}} End configuration added by Zim install
#
# Personnal configuration directives
#
typeset -U path
# >>> set PATH so it includes user's private bin if it exists >>>
path=(~/bin ~/.local/bin $path[@])
# <<< set PATH so it includes user's private bin if it exists <<<
2021-03-05 21:02:12 +00:00
# >>> active gnome-keyring >>>
2023-04-04 09:38:34 +00:00
# if [ -n "${DESKTOP_SESSION}" ];then
# eval $(gnome-keyring-daemon --start) 2>/dev/null
# export SSH_AUTH_SOCK
# fi
2022-08-17 21:40:43 +00:00
# Check if the ssh-agent is already running
# if [ "$(ps -u $USER | grep ssh-agent | wc -l)" -lt "1" ]; then
# echo "$(date +%F@%T) - SSH-AGENT: Agent will be started"
# # Start the ssh-agent and redirect the environment variables into a file
# ssh-agent -s >~/.ssh/ssh-agent
# # Load the environment variables from the file
# . ~/.ssh/ssh-agent >/dev/null
# # Add the default key to the ssh-agent
# for f in ${HOME}/.ssh/*.pub; do
# ssh-add ${HOME}/.ssh/$(basename -s .pub $f)
# done
# else
# echo "$(date +%F@%T) - SSH-AGENT: Agent already running"
# . ~/.ssh/ssh-agent >/dev/null
# fi
2021-03-05 21:02:12 +00:00
# <<< active gnome-keyring <<<
2021-02-19 20:34:24 +00:00
# >>> environment variables >>>
2021-10-31 23:05:07 +00:00
export BROWSER=qutebrowser
2023-08-08 08:39:00 +00:00
export EDITOR=$([[ $(command -v lvim) ]] && echo lvim || echo vim)
2023-04-26 14:29:30 +00:00
export TERMINAL=alacritty
2023-04-04 09:38:34 +00:00
# export FZF_DEFAULT_COMMAND='rg --files --no-ignore --hidden --follow --glob "!.git/*"'
2023-04-24 17:47:04 +00:00
export GEM_HOME="$(ruby -e 'puts Gem.user_dir')"
export PATH="$PATH:$GEM_HOME/bin"
2021-02-19 20:34:24 +00:00
export MYVIMRC="${HOME}/.vimrc"
export PASSWORD_STORE_DIR="${HOME}/Private/.password-store"
export PASSWORD_STORE_ENABLE_EXTENSIONS=True
2021-05-05 19:54:21 +00:00
export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus
2023-08-05 13:52:16 +00:00
export ZK_NOTEBOOK_DIR="${HOME}/Notes"
# export OPENAI_API_KEY=""
2021-10-04 19:04:08 +00:00
# <<< environment variables <<<
2021-02-19 20:34:24 +00:00
# }}} End personnal configuration directives