summaryrefslogtreecommitdiff
path: root/zscripts/termuxprompt.zsh
diff options
context:
space:
mode:
authorTim Keller <tjk@tjkeller.xyz>2024-10-18 21:52:28 -0500
committerTim Keller <tjk@tjkeller.xyz>2024-10-18 21:52:28 -0500
commit2dc486fb891e65658dff83ab34ca8878756a6a90 (patch)
tree03b39eb93f38534ab0972beadb770fecbd2243b8 /zscripts/termuxprompt.zsh
downloadzsh-2dc486fb891e65658dff83ab34ca8878756a6a90.tar.xz
zsh-2dc486fb891e65658dff83ab34ca8878756a6a90.zip
initial commit
Diffstat (limited to 'zscripts/termuxprompt.zsh')
-rwxr-xr-xzscripts/termuxprompt.zsh8
1 files changed, 8 insertions, 0 deletions
diff --git a/zscripts/termuxprompt.zsh b/zscripts/termuxprompt.zsh
new file mode 100755
index 0000000..1442cc8
--- /dev/null
+++ b/zscripts/termuxprompt.zsh
@@ -0,0 +1,8 @@
+#!/usr/bin/env zsh
+
+if [ -n "$TERMUX_VERSION" ]; then
+ PS1="%B%F{green}[%F{blue}%U%~%u%F{green}]%f%b%(!.#.$) "
+ PS1OVERRIDE=1
+ export ZPLUGINSDIR=~/.local/share/zsh/zplugins
+ export ZPLUGNOROOT=1
+fi