rewrapped linux shell
This commit is contained in:
parent
cb2adf53a8
commit
db2b7b713b
@ -1,4 +1,4 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/zsh
|
||||||
|
|
||||||
TARGET="$HOME/.config/wryn/tty-colorscheme"
|
TARGET="$HOME/.config/wryn/tty-colorscheme"
|
||||||
[ ! -f $TARGET ] && TARGET="$DOTWRYN/config/kitty/theme.conf"
|
[ ! -f $TARGET ] && TARGET="$DOTWRYN/config/kitty/theme.conf"
|
||||||
@ -7,6 +7,7 @@ GET_COLOR_FROM_KITTY_THEME() {
|
|||||||
grep "$1" $TARGET | awk '{print $2}' | sed 's/ //g; s/#//g' | tr '[:lower:]' '[:upper:]'
|
grep "$1" $TARGET | awk '{print $2}' | sed 's/ //g; s/#//g' | tr '[:lower:]' '[:upper:]'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[[ "$TERM" =~ ^linux$ ]] && {
|
||||||
/bin/echo -e "\
|
/bin/echo -e "\
|
||||||
\e]P0$(GET_COLOR_FROM_KITTY_THEME '^background ')
|
\e]P0$(GET_COLOR_FROM_KITTY_THEME '^background ')
|
||||||
\e]P1$(GET_COLOR_FROM_KITTY_THEME '^color1 ')
|
\e]P1$(GET_COLOR_FROM_KITTY_THEME '^color1 ')
|
||||||
@ -25,5 +26,5 @@ GET_COLOR_FROM_KITTY_THEME() {
|
|||||||
\e]PE$(GET_COLOR_FROM_KITTY_THEME '^color7 ')
|
\e]PE$(GET_COLOR_FROM_KITTY_THEME '^color7 ')
|
||||||
\e]PF$(GET_COLOR_FROM_KITTY_THEME '^color15 ')
|
\e]PF$(GET_COLOR_FROM_KITTY_THEME '^color15 ')
|
||||||
"
|
"
|
||||||
|
clear
|
||||||
[[ "$TERM" = "linux" ]] && clear
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user