summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
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"'