about summary refs log tree commit diff
path: root/configs/shared/zsh
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2019-03-18T20·53+0000
committerWilliam Carroll <wpcarro@gmail.com>2019-03-18T20·53+0000
commit51e123d84c0f715dda8492be1426b0649a593d73 (patch)
tree041c4d8047c63af680932394ef99c4bfc61e03c1 /configs/shared/zsh
parent14972986e3e247ad20954f2450e1acc7ff476b9e (diff)
Remove autojump functionality from `t`
This sometimes is what I what and most of the time not what I want
Diffstat (limited to 'configs/shared/zsh')
-rw-r--r--configs/shared/zsh/functions.zsh9
1 files changed, 2 insertions, 7 deletions
diff --git a/configs/shared/zsh/functions.zsh b/configs/shared/zsh/functions.zsh
index f555ae4e9aa2..60e512e8fb79 100644
--- a/configs/shared/zsh/functions.zsh
+++ b/configs/shared/zsh/functions.zsh
@@ -458,7 +458,8 @@ nix_introspect() {
 
 # Tmux
 t() {
-  # Find or create a Tmux session.
+  # Find or create a Tmux session. This should work both from within Tmux or
+  # outside of Tmux.
   local session_name="${1}"
   if ! tmux has-session -t "${session_name}" 2> /dev/null; then
     local oldTMUX="${TMUX}"
@@ -466,12 +467,6 @@ t() {
     tmux new -d -s "${session_name}" -n "${session_name}"
     export TMUX="${oldTMUX}"
     unset oldTMUX
-
-    if command -v j >/dev/null; then
-      tmux send-keys -t "${session_name}" "j ${session_name}; clear" "C-m"
-    else
-      tmux send-keys -t "${session_name}"
-    fi
   fi
   if [[ -n "${TMUX}" ]]; then
     tmux switch-client -t "${session_name}"