dotwryn/config/dotwryn.env.zsh

73 lines
2.2 KiB
Bash
Raw Normal View History

2021-09-16 18:13:05 +00:00
#####################################################################
### Path References #################################################
#####################################################################
2021-09-16 20:56:05 +00:00
export DOTWRYN="$HOME/.wryn"
export SOURCE_PACKAGES="$HOME/.local/share/source-packages"
2021-02-24 22:29:07 +00:00
2024-04-16 15:52:02 +00:00
RELOAD_ZSH_UTILS() {
2024-04-16 15:48:24 +00:00
local SCWRYPTS_ROOT="$(scwrypts --root 2>/dev/null)"
: \
&& [ $SCWRYPTS_ROOT ] \
&& [ -d "$SCWRYPTS_ROOT" ] \
&& source "$(scwrypts --root)/zsh/lib/utils/utils.module.zsh" \
2024-04-16 15:49:58 +00:00
&& export DOTWRYN_UTILS_LOADED=1 \
;
2024-04-16 15:48:24 +00:00
}
[ $DOTWRYN_UTILS_LOADED ] || RELOAD_ZSH_UTILS
2021-09-16 18:13:05 +00:00
#####################################################################
2021-09-16 20:56:05 +00:00
### Application Settings ############################################
2021-09-16 18:13:05 +00:00
#####################################################################
export PREFERRED_EDITOR=(vim vi)
2021-09-17 01:52:52 +00:00
2021-09-16 20:56:05 +00:00
RIPGREP_CONFIG_PATH="$HOME/.config/ripgrep/config"
2021-09-23 17:07:12 +00:00
2021-09-16 21:06:49 +00:00
PS1_BRANCH_SYMBOL=''
2021-09-16 20:56:05 +00:00
PS1_INDICATOR_SYMBOL='☕'
PS1_SEPARATOR='::'
PS1_USER='%m'
2021-09-16 20:56:05 +00:00
2021-09-16 22:15:30 +00:00
WELCOME () {
{ figlet 'Welcome, beautiful'; cowsay -p 'damn u sexy'; } | lolcat
}
2021-09-16 18:13:05 +00:00
#####################################################################
### External Plugins / Settings #####################################
#####################################################################
2022-08-23 03:27:20 +00:00
# fzf
EXTERNAL_PLUGINS+=(
2021-09-16 18:13:05 +00:00
'/usr/share/fzf/key-bindings.zsh'
'/usr/share/fzf/completion.zsh'
2022-08-23 03:27:20 +00:00
)
2023-06-24 13:50:14 +00:00
export FZF_DEFAULT_OPTS='--reverse --ansi --height 50% --bind=ctrl-c:cancel'
2022-11-28 23:02:47 +00:00
export FZF_DEFAULT_COMMAND='rg --files'
2021-09-16 18:13:05 +00:00
2022-08-23 03:27:20 +00:00
# fzf-tab
EXTERNAL_PLUGINS+=("$DOTWRYN/zsh/plugins/fzf-tab/fzf-tab.plugin.zsh")
2021-09-16 18:13:05 +00:00
zstyle ':fzf-tab:*' accept-line enter
zstyle ':fzf-tab:*' fzf-bindings 'space:accept' ';:toggle'
zstyle ':fzf-tab:*' continuous-trigger '/'
2021-09-16 22:39:58 +00:00
2022-08-23 03:27:20 +00:00
# scwrypts
2024-04-16 15:48:24 +00:00
EXTERNAL_PLUGINS+=("$(scwrypts --root 2>/dev/null)/scwrypts.plugin.zsh")
2022-08-23 03:27:20 +00:00
for e in \
"local.$(hostnamectl --static).secret" \
"local.$(hostnamectl --static)" \
"local"
2023-06-27 22:53:59 +00:00
do export SCWRYPTS_ENV="$e"; [ -f "$HOME/.config/scwrypts/environments/scwrypts/$e" ] && break; done
2022-08-23 03:27:20 +00:00
# z
EXTERNAL_PLUGINS+=("$DOTWRYN/zsh/plugins/z/z.sh")
# code-activator
EXTERNAL_PLUGINS+=("$DOTWRYN/zsh/plugins/code-activator/activator.plugin.zsh")
# ssh
EXTERNAL_PLUGINS+=("$DOTWRYN/zsh/plugins/ssh/ssh.plugin.zsh")