From bbf794e666cb6eb5171d7a0df796c1b4afdca148 Mon Sep 17 00:00:00 2001 From: Marc Vertes Date: Sat, 18 Jan 2025 14:31:38 +0100 Subject: update --- .bash-powerline.sh | 1 + .bashrc | 3 +++ .config/sway/config | 2 -- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.bash-powerline.sh b/.bash-powerline.sh index 6d2ee2d..c8f126a 100644 --- a/.bash-powerline.sh +++ b/.bash-powerline.sh @@ -73,6 +73,7 @@ __powerline() { fi local cwd="$COLOR_CWD\w$RESET" + # local cwd="\e]0;\W\a$COLOR_CWD\w$RESET" # Bash by default expands the content of PS1 unless promptvars is disabled. # We must use another layer of reference to prevent expanding any user # provided strings, which would cause security issues. diff --git a/.bashrc b/.bashrc index 81bb994..a53f7b8 100644 --- a/.bashrc +++ b/.bashrc @@ -96,6 +96,9 @@ meteo() { [ -f "/usr/share/fzf/completion.bash" ] && . "/usr/share/fzf/completion.bash" [ -f "/usr/share/fzf/key-bindings.bash" ] && . "/usr/share/fzf/key-bindings.bash" +# Print current command in terminal title +trap 'printf "\e]2;$PWD: ${BASH_COMMAND/ps1/bash}\e"' DEBUG + # Display git status in prompt . ~/.bash-powerline.sh diff --git a/.config/sway/config b/.config/sway/config index 5691848..76e0b49 100644 --- a/.config/sway/config +++ b/.config/sway/config @@ -13,8 +13,6 @@ exec dbus-update-activation-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP=sway exec xset +fp /usr/share/fonts/misc -exec light - ### Variables # # Logo key. Use Mod1 for Alt. -- cgit v1.2.3