Add explicit configuration options
This commit is contained in:
parent
014d202387
commit
12c77cfe00
1 changed files with 18 additions and 1 deletions
19
shcrt
19
shcrt
|
@ -1,7 +1,22 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
############ Script config #############
|
||||||
|
## GUI mode
|
||||||
|
#
|
||||||
|
# Console based:
|
||||||
|
# dialog - ncurses, runs fine on WSL
|
||||||
|
# none - works everywhere
|
||||||
|
#
|
||||||
|
# GUI based:
|
||||||
|
# yad, gtkdialog, kdialog, Xdialog - GNU/Linux only
|
||||||
|
# zenity - Windows port available, doesn't work very well because Microsoft is a little bitch and
|
||||||
|
# argument passing between Linux and Windows doesn't work well.
|
||||||
export supermode="dialog"
|
export supermode="dialog"
|
||||||
|
|
||||||
|
## Emojis - auto, yes, no
|
||||||
|
export emojis="auto"
|
||||||
|
########### /Script config #############
|
||||||
|
|
||||||
function is_wsl {
|
function is_wsl {
|
||||||
grep -q Microsoft /proc/version
|
grep -q Microsoft /proc/version
|
||||||
return $?
|
return $?
|
||||||
|
@ -21,6 +36,8 @@ while [ -h "$SOURCE" ]; do # resolve $SOURCE until the file is no longer a symli
|
||||||
done
|
done
|
||||||
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
|
DIR="$( cd -P "$( dirname "$SOURCE" )" >/dev/null 2>&1 && pwd )"
|
||||||
|
|
||||||
|
export supertitle="shcrt"
|
||||||
|
|
||||||
export SHELL_LIBRARY_PATH="$SHELL_LIBRARY_PATH:$DIR/easybashgui/lib"
|
export SHELL_LIBRARY_PATH="$SHELL_LIBRARY_PATH:$DIR/easybashgui/lib"
|
||||||
export PATH="$PATH:$DIR/easybashgui/src"
|
export PATH="$PATH:$DIR/easybashgui/src"
|
||||||
source easybashgui
|
source easybashgui
|
||||||
|
@ -62,7 +79,7 @@ function scrt_session_path {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
if is_wsl; then
|
if [[ "$emojis" == "no" ]] || ([[ "$emojis" != "yes" ]] && is_wsl); then
|
||||||
dir_char="+"
|
dir_char="+"
|
||||||
file_char=" "
|
file_char=" "
|
||||||
search_entry="> Search"
|
search_entry="> Search"
|
||||||
|
|
Loading…
Add table
Reference in a new issue