aboutsummaryrefslogtreecommitdiff
path: root/zsh/.zshrc
diff options
context:
space:
mode:
authoromagdy <omar.professional8777@gmail.com>2025-07-26 02:33:10 +0300
committeromagdy <omar.professional8777@gmail.com>2025-07-26 02:33:10 +0300
commit45bc42047321f6e51f32adb24ec5fc95333c6380 (patch)
tree5afef8257d24453be6d3bfa31caaff4fb24cdc3f /zsh/.zshrc
parentf098b4cc7b9026870de461d467a22c6be704085c (diff)
downloaddotfiles-45bc42047321f6e51f32adb24ec5fc95333c6380.tar.xz
dotfiles-45bc42047321f6e51f32adb24ec5fc95333c6380.zip
nvim: switched to blink.nvim + some other stuff I guess
Diffstat (limited to 'zsh/.zshrc')
-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"