aboutsummaryrefslogtreecommitdiff
path: root/terminal
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2025-12-25 15:40:49 -0300
committerSilvio Rhatto <rhatto@riseup.net>2025-12-25 15:40:49 -0300
commit3cda66bbb6966c69471d87599c440f9c2945364d (patch)
tree9165960fb4e6f88057d283f232b7c8b25618ca89 /terminal
parente6379b5e2db43d8ca72f0e7313de45b63bfef9bc (diff)
downloadutils-x11-master.tar.gz
utils-x11-master.tar.bz2
Fix: terminal: set a custom zsh config folder if commands are specified, to speed up startupHEADmaster
Diffstat (limited to 'terminal')
-rwxr-xr-xterminal6
1 files changed, 6 insertions, 0 deletions
diff --git a/terminal b/terminal
index 7e37c26..baadc43 100755
--- a/terminal
+++ b/terminal
@@ -35,6 +35,12 @@ fi
#SH="bash --login -i -rcfile $HOME/.terminal"
SH="zsh -i"
+# Set a custom zsh config folder if commands are specified, to speed up startup
+if [ ! -z "$1" ]; then
+ mkdir -p ~/.custom/terminal
+ export ZDOTDIR="~/.custom/terminal"
+fi
+
# Dispatch
if [ "$TERM" == "stterm" ]; then
if [ ! -z "$1" ]; then