mirror of
https://github.com/ViViDboarder/shoestrap.git
synced 2024-11-17 23:56:30 +00:00
b81e79976e
Now defining a theme directory and adding files to that directory
38 lines
1010 B
Fish
38 lines
1010 B
Fish
# XDG Spec
|
|
set -gx XDG_CONFIG_HOME "$HOME/.config"
|
|
set -gx XDG_DATA_HOME "$HOME/.local/share"
|
|
set -gx XDG_CACHE_HOME "$HOME/.cache"
|
|
|
|
# Increase memory sizes for java using Ant
|
|
set -gx ANT_OPTS "-Xmx2048m -Xms512m"
|
|
|
|
# Set default editor to vim
|
|
set -gx EDITOR vim
|
|
set -gx VISUAL "$EDITOR"
|
|
|
|
# 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'
|
|
"
|
|
|
|
# Export colors
|
|
eval ($HOME/bin/derive_colors.py --export --fish)
|
|
# Set fish theme based on newly exported colors
|
|
if set -q FISH_THEME
|
|
fish_theme "$FISH_THEME"
|
|
end
|
|
end
|