fix symlinks and directories

This commit is contained in:
Wryn (yage) Wagner 2022-08-18 20:21:32 -06:00
parent 6389d36192
commit 47bd85119b
4 changed files with 6 additions and 4 deletions

View File

@ -1 +1 @@
/home/w0ryn/.wryn/colorschemes/autumn.conf
autumn.conf

View File

@ -1 +1 @@
/home/w0ryn/.wryn/colorschemes/main.conf
main.conf

View File

@ -1,4 +1,5 @@
#!/bin/zsh
cd "${0:a:h}"
while [[ $# -gt 0 ]]
do
case $1 in

View File

@ -52,7 +52,7 @@ CHANGE_COLORSCHEME () {
EXTRA_OPTIONS=(default)
;;
kitty )
TARGET_LINK="$DOTWRYN/colorschemes/kitty.$2"
TARGET_LINK="./kitty.$2"
EXTRA_OPTIONS=()
;;
esac
@ -64,11 +64,12 @@ CHANGE_COLORSCHEME () {
| sed 's/^./\L&/; s/[A-Z]/-\L&/g'
)
cd "$DOTWRYN/colorschemes/"
case $COLORSCHEME in
'' ) return 1 ;;
default* ) ;;
* )
COLORSCHEME="$DOTWRYN/colorschemes/$COLORSCHEME.conf"
COLORSCHEME="$COLORSCHEME.conf"
[ ! -f $COLORSCHEME ] && { echo "no such theme">&2; return 2; }
;;
esac