fix symlinks and directories
This commit is contained in:
parent
6389d36192
commit
47bd85119b
@ -1 +1 @@
|
||||
/home/w0ryn/.wryn/colorschemes/autumn.conf
|
||||
autumn.conf
|
@ -1 +1 @@
|
||||
/home/w0ryn/.wryn/colorschemes/main.conf
|
||||
main.conf
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user