diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2024-06-02 09:50:47 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-06-02 09:50:47 +0530 |
| commit | 145d1c7b4fa2e521711f018593771e18aa6644cf (patch) | |
| tree | 34ee1bf7c3d88188c9042b18425e09d070915a9e /config/bash.nix | |
| parent | 4050ba0a89a3a97b29d4f281b7570495cf5596d9 (diff) | |
update
Diffstat (limited to '')
| -rw-r--r-- | config/bash.nix | 20 |
1 files changed, 4 insertions, 16 deletions
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"' ''; }; } |
