From 47bd85119ba6e4d6e8744bf640c664f3d3717094 Mon Sep 17 00:00:00 2001 From: yage Date: Thu, 18 Aug 2022 20:21:32 -0600 Subject: [PATCH] fix symlinks and directories --- colorschemes/kitty.alternate | 2 +- colorschemes/kitty.main | 2 +- setup/run | 1 + zsh/colors | 5 +++-- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/colorschemes/kitty.alternate b/colorschemes/kitty.alternate index 5a751fe..4f50b3b 120000 --- a/colorschemes/kitty.alternate +++ b/colorschemes/kitty.alternate @@ -1 +1 @@ -/home/w0ryn/.wryn/colorschemes/autumn.conf \ No newline at end of file +autumn.conf \ No newline at end of file diff --git a/colorschemes/kitty.main b/colorschemes/kitty.main index bda895c..d42831d 120000 --- a/colorschemes/kitty.main +++ b/colorschemes/kitty.main @@ -1 +1 @@ -/home/w0ryn/.wryn/colorschemes/main.conf \ No newline at end of file +main.conf \ No newline at end of file diff --git a/setup/run b/setup/run index cf840b3..355144c 100755 --- a/setup/run +++ b/setup/run @@ -1,4 +1,5 @@ #!/bin/zsh +cd "${0:a:h}" while [[ $# -gt 0 ]] do case $1 in diff --git a/zsh/colors b/zsh/colors index 13f1287..88fe78a 100644 --- a/zsh/colors +++ b/zsh/colors @@ -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