diff options
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 = { |