diff options
author | Leonardo Santiago <[email protected]> | 2024-07-08 16:55:19 -0300 |
---|---|---|
committer | Leonardo Santiago <[email protected]> | 2024-07-08 16:55:19 -0300 |
commit | 9a540319df87f8df75266dec9986e1735a44a226 (patch) | |
tree | 10131dc87c4737bb5acbad92c10679e03fd2b334 /users/leonardo.nix | |
parent | 5812d7b29e056649d2b8761d3b5eae9f22a853ef (diff) |
update more stuff
Diffstat (limited to 'users/leonardo.nix')
-rw-r--r-- | users/leonardo.nix | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/users/leonardo.nix b/users/leonardo.nix index e480759..c858494 100644 --- a/users/leonardo.nix +++ b/users/leonardo.nix @@ -37,32 +37,8 @@ in completion.enable = true; promptInit = '' - vterm_printf() { - if [ -n "$TMUX" ] && ([ "''${TERM%%-*}" = "tmux" ] || [ "''${TERM%%-*}" = "screen" ]); then - # Tell tmux to pass the escape sequences through - printf "\ePtmux;\e\e]%s\007\e\\" "$1" - elif [ "''${TERM%%-*}" = "screen" ]; then - # GNU screen (screen, screen-256color, screen-256color-bce) - printf "\eP\e]%s\007\e\\" "$1" - else - printf "\e]%s\e\\" "$1" - fi - } - vterm_prompt_end(){ - vterm_printf "51;A$(whoami)@$(hostname):$(pwd)" - } - case "$TERM" in - "dumb") - PS1="> " - ;; - xterm*|rxvt*|eterm*|screen*) - PS1="\[\033[1;95m\][\h]\[\033[0m\] \[\033[0;32m\]\w\[\033[0m\] :: " - PS1=$PS1'\[$(vterm_prompt_end)\]' - ;; - *) - PS1="> " - ;; - esac + PS1="\[\033[1;95m\][\h]\[\033[0m\] \[\033[0;32m\]\w\[\033[0m\] :: " + [ -n "$EAT_SHELL_INTEGRATION_DIR" ] && source "$EAT_SHELL_INTEGRATION_DIR/bash" ''; }; fonts = { |