Adds "simple" shell for keybinding
I have been experimenting with running a terminal on a black and white e-ink display. A lot of things are difficult to see when converted from colour to black and white.
This commit is contained in:
parent
fcbd5f3637
commit
081c3bfeb4
1 changed files with 13 additions and 1 deletions
|
@ -5,9 +5,21 @@
|
||||||
|
|
||||||
CMD=$TERMINAL
|
CMD=$TERMINAL
|
||||||
CWD=''
|
CWD=''
|
||||||
|
SIMPLE=''
|
||||||
|
|
||||||
if [ ! -z "$1" ]; then
|
if [ ! -z "$1" ]; then
|
||||||
export initialCommand="$1"
|
while [ "$#" -gt 0 ]; do
|
||||||
|
case "$1" in
|
||||||
|
--simple|-s)
|
||||||
|
export SIMPLE=1
|
||||||
|
export NO_COLOR=1
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
export initialCommand="$1"
|
||||||
|
break
|
||||||
|
esac
|
||||||
|
done
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
# Get window ID
|
# Get window ID
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue