From 9a540319df87f8df75266dec9986e1735a44a226 Mon Sep 17 00:00:00 2001 From: Leonardo Santiago Date: Mon, 8 Jul 2024 16:55:19 -0300 Subject: update more stuff --- users/leonardo.nix | 28 ++-------------------------- 1 file changed, 2 insertions(+), 26 deletions(-) (limited to 'users/leonardo.nix') 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 = { -- cgit v1.2.3