From 145d1c7b4fa2e521711f018593771e18aa6644cf Mon Sep 17 00:00:00 2001 From: Raghuram Subramani Date: Sun, 2 Jun 2024 09:50:47 +0530 Subject: update --- config/bash.nix | 20 ++++---------------- 1 file changed, 4 insertions(+), 16 deletions(-) (limited to 'config/bash.nix') diff --git a/config/bash.nix b/config/bash.nix index e8eaccf..03ef601 100644 --- a/config/bash.nix +++ b/config/bash.nix @@ -3,7 +3,7 @@ enable = true; initExtra= '' function timer_start { - timer=$\{timer:-$SECONDS} + timer=''${timer:-$SECONDS} } function timer_stop { @@ -18,7 +18,7 @@ else PROMPT_COMMAND="$PROMPT_COMMAND; timer_stop" fi - export PS1='\[\e[38;5;243m\]($\{timer_show}s) \h \[\e[38;5;254m\]\w \[\033[0m\]> ' + export PS1='\[\e[38;5;243m\](''${timer_show}s) \h \[\e[38;5;254m\]\w \[\033[0m\]> ' bind "set completion-ignore-case on" @@ -32,16 +32,7 @@ if [ -n "$DIR" ] then - if [ -f "$DIR/flake.nix" ]; then - cd $DIR || exit - nix develop - 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 + cd $DIR fi } @@ -50,10 +41,7 @@ sessionizer fi - bind '"\C-g": "sessionizer\n"' - bind '"\C-f": "sessionizer -cd\n"' - - alias c="ssh root@cacer.local" + bind '"\C-f": "sessionizer\n"' ''; }; } -- cgit v1.2.3