summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2024-01-26 13:50:50 +0530
committerRaghuram Subramani <raghus2247@gmail.com>2024-01-26 13:50:50 +0530
commitcc5a352e65e533cc84358a546c9ee6f1d5a47908 (patch)
treecbaf606101c699d7eb33bd4160ad45547acddb60 /.bashrc
parent7706ff72deb46b672b774f1f5f483f30253fb2c9 (diff)
updates
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc22
1 files changed, 1 insertions, 21 deletions
diff --git a/.bashrc b/.bashrc
index 790d6d4..e03f566 100644
--- a/.bashrc
+++ b/.bashrc
@@ -1,23 +1,3 @@
-sessionizer() {
- DIR=$(fdfind --type d --strip-cwd-prefix -L -H | fzf)
- SESSION_NAME="$DIR_$(date +%M%S)"
-
- if [ -n "$DIR" ]
- then
- if [ "$1" == "-cd" ]
- then
- cd $DIR
- return
- fi
- tmux new-session -d -c "$DIR" -s "$SESSION_NAME"
- if [ -n "$TMUX" ]
- then
- tmux switch -t "$SESSION_NAME"
- else
- tmux attach -t "$SESSION_NAME"
- fi
- fi
-}
-
+source $HOME/.sessionizer.sh
bind '"\C-f": "sessionizer\n"'
bind '"\C-F": "sessionizer -cd\n"'