aboutsummaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc13
1 files changed, 12 insertions, 1 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index f00234e..91d300e 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -181,6 +181,17 @@ function y() {
rm -f -- "$tmp"
}
+function t() {
+ {
+ exec </dev/tty
+ exec <&1
+ local session
+ session=$(sesh list -t -c | fzf --height 40% --reverse --border-label ' sesh ' --border --prompt '⚡ ')
+ [[ -z "$session" ]] && return
+ sesh connect $session
+ }
+}
+
# Interactive cd
function fcd() {
@@ -203,4 +214,4 @@ esac
# Bind ctrl-r but not up arrow
eval "$(atuin init zsh --disable-up-arrow)"
-. "/home/omar/.deno/env" \ No newline at end of file
+. "/home/omar/.deno/env"