From 850ad9d3fbbe103dd0dddb9cdca260c3fac32e57 Mon Sep 17 00:00:00 2001 From: Jonathan Hodgson Date: Tue, 16 Nov 2021 10:32:29 +0000 Subject: [PATCH] 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. --- bin/.bin/folder-shell | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/bin/.bin/folder-shell b/bin/.bin/folder-shell index 3d15ea54..340a659a 100755 --- a/bin/.bin/folder-shell +++ b/bin/.bin/folder-shell @@ -5,9 +5,21 @@ CMD=$TERMINAL CWD='' +SIMPLE='' 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; # Get window ID