diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-06-04 14:48:39 +0530 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-06-04 14:48:39 +0530 |
| commit | a3b37708f641338c45b788f6622b08a0d55f5729 (patch) | |
| tree | 1cb174183db045c7ad09272b9e7d3cfc081fb21f /config/bash.nix | |
| parent | dabd3194f50778f175023fd454d00a6e0a4cdf6d (diff) | |
update
Diffstat (limited to '')
| -rw-r--r-- | config/bash.nix | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/config/bash.nix b/config/bash.nix index ae54f9e..df936b9 100644 --- a/config/bash.nix +++ b/config/bash.nix @@ -2,30 +2,10 @@ programs.bash = { enable = true; initExtra= '' - function timer_start { - timer=''${timer:-$SECONDS} - } - - function timer_stop { - timer_show=$(($SECONDS - $timer)) - unset timer - } - - trap 'timer_start' DEBUG - - if [ "$PROMPT_COMMAND" == "" ]; then - PROMPT_COMMAND="timer_stop" - 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;254m\]\w \[\033[0m\]> ' bind "set completion-ignore-case on" - if [[ -n "$IN_NIX_SHELL" ]]; then - export PS1="\[\e[38;5;242m\](dev) $PS1" - fi - sessionizer() { DIR=$(fd . /home/compromyse --type d -L -d 3 | fzf) SESSION_NAME="$DIR_$(date +%M%S)" |
