2019-04-30 22:46:43 +00:00
|
|
|
# XDG Spec
|
|
|
|
set -gx XDG_CONFIG_HOME "$HOME/.config"
|
|
|
|
set -gx XDG_DATA_HOME "$HOME/.local/share"
|
|
|
|
set -gx XDG_CACHE_HOME "$HOME/.cache"
|
|
|
|
|
2017-07-25 21:03:44 +00:00
|
|
|
# Increase memory sizes for java using Ant
|
|
|
|
set -gx ANT_OPTS "-Xmx2048m -Xms512m"
|
|
|
|
|
2020-11-19 19:47:31 +00:00
|
|
|
# Set default editor to vim
|
|
|
|
set -gx EDITOR vim
|
|
|
|
set -gx VISUAL "$EDITOR"
|
|
|
|
|
2020-10-23 18:45:34 +00:00
|
|
|
# Interractive env variables
|
|
|
|
if status --is-interactive
|
|
|
|
# FZF
|
|
|
|
if type -q rg
|
|
|
|
set -gx FZF_DEFAULT_COMMAND 'rg --files'
|
|
|
|
# set -gx FZF_DEFAULT_COMMAND 'rg --files --no-ignore-vcs --hidden'
|
|
|
|
else if type -q ag
|
|
|
|
set -gx FZF_DEFAULT_COMMAND 'ag -g ""'
|
|
|
|
end
|
|
|
|
if [ -n "$FZF_DEFAULT_COMMAND" ]
|
|
|
|
set -gx FZF_CTRL_T_COMMAND "$FZF_DEFAULT_COMMAND \$dir"
|
|
|
|
end
|
|
|
|
set -gx FZF_DEFAULT_OPTS "
|
|
|
|
--preview-window=:hidden
|
|
|
|
--preview='__fzf_preview {}'
|
|
|
|
--bind '?:toggle-preview'
|
|
|
|
"
|
2017-07-25 21:03:44 +00:00
|
|
|
|
2020-10-23 18:45:34 +00:00
|
|
|
# Export colors
|
|
|
|
eval ($HOME/bin/derive_colors.py --export --fish)
|
2021-09-01 22:04:56 +00:00
|
|
|
# Set fish theme based on newly exported colors
|
|
|
|
if set -q FISH_THEME
|
|
|
|
_set_colorscheme "$FISH_THEME"
|
2020-11-14 00:28:13 +00:00
|
|
|
end
|
2020-10-23 18:45:34 +00:00
|
|
|
end
|