aboutsummaryrefslogtreecommitdiff
path: root/scripts/c
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-01-17 19:54:15 -0300
committerEuAndreh <eu@euandre.org>2021-01-17 19:55:24 -0300
commitded7301433cccdc9e3a8dc819fffd6ba71ab93c5 (patch)
treecd067b5fd0389b2a4e8ea087e4b36f74e3f28984 /scripts/c
parentEmbed export-keys.sh and copy-public-key.sh into README.md (diff)
downloaddotfiles-ded7301433cccdc9e3a8dc819fffd6ba71ab93c5.tar.gz
dotfiles-ded7301433cccdc9e3a8dc819fffd6ba71ab93c5.tar.xz
scripts/c: Make it $TMUX aware
Diffstat (limited to '')
-rwxr-xr-xscripts/c6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/c b/scripts/c
index 9b220622..1257674a 100755
--- a/scripts/c
+++ b/scripts/c
@@ -1,3 +1,7 @@
#!/bin/sh -eu
-tmux send-keys -R \; clear-history
+if [ -n "${TMUX:-}" ]; then
+ tmux send-keys -R \; clear-history
+else
+ clear
+fi