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
|
@ -1,4 +1,5 @@
|
|||||||
#!/bin/zsh
|
#!/bin/zsh
|
||||||
|
cd "${0:a:h}"
|
||||||
while [[ $# -gt 0 ]]
|
while [[ $# -gt 0 ]]
|
||||||
do
|
do
|
||||||
case $1 in
|
case $1 in
|
||||||
|
@ -52,7 +52,7 @@ CHANGE_COLORSCHEME () {
|
|||||||
EXTRA_OPTIONS=(default)
|
EXTRA_OPTIONS=(default)
|
||||||
;;
|
;;
|
||||||
kitty )
|
kitty )
|
||||||
TARGET_LINK="$DOTWRYN/colorschemes/kitty.$2"
|
TARGET_LINK="./kitty.$2"
|
||||||
EXTRA_OPTIONS=()
|
EXTRA_OPTIONS=()
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
@ -64,11 +64,12 @@ CHANGE_COLORSCHEME () {
|
|||||||
| sed 's/^./\L&/; s/[A-Z]/-\L&/g'
|
| sed 's/^./\L&/; s/[A-Z]/-\L&/g'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
cd "$DOTWRYN/colorschemes/"
|
||||||
case $COLORSCHEME in
|
case $COLORSCHEME in
|
||||||
'' ) return 1 ;;
|
'' ) return 1 ;;
|
||||||
default* ) ;;
|
default* ) ;;
|
||||||
* )
|
* )
|
||||||
COLORSCHEME="$DOTWRYN/colorschemes/$COLORSCHEME.conf"
|
COLORSCHEME="$COLORSCHEME.conf"
|
||||||
[ ! -f $COLORSCHEME ] && { echo "no such theme">&2; return 2; }
|
[ ! -f $COLORSCHEME ] && { echo "no such theme">&2; return 2; }
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Loading…
Reference in New Issue
Block a user