From f4f6de7d82c77c59ec564526a80e025f165151d4 Mon Sep 17 00:00:00 2001 From: Wryn Wagner Date: Mon, 22 Jun 2020 12:07:00 -0600 Subject: [PATCH] Renamed kitty terminal colorscheme changer --- zsh/colors | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/zsh/colors b/zsh/colors index 80ba038..acfaaff 100644 --- a/zsh/colors +++ b/zsh/colors @@ -28,7 +28,7 @@ PS1="$PREVIOUS_COMMAND_CONDITION $USER $SEPARATOR $DIRECTORY $GIT_BRANCH $PROMPT ###################################################################################### # -function kittyChangeTheme () { +function KITTY_CHANGE_THEME () { [ ! $1 ] && echo no filename given :c && return 1; [ ! -f "$DOTWRYN/config/colorschemes/kitty/$1" ] \ && echo colorscheme not supported && return 2; @@ -37,7 +37,7 @@ function kittyChangeTheme () { ln -s "$DOTWRYN/config/colorschemes/kitty/$1" "$DOTWRYN/config/kitty/theme.conf"\ && echo 'theme changed successfully! (effective on new terminal session)' } -_kittyChangeTheme () { +_KITTY_CHANGE_THEME () { compadd $(ls $DOTWRYN/config/colorschemes/kitty) } -compdef _kittyChangeTheme kittyChangeTheme; +compdef _KITTY_CHANGE_THEME KITTY_CHANGE_THEME;