summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Vertes <mvertes@free.fr>2025-01-21 14:17:42 +0100
committerMarc Vertes <mvertes@free.fr>2025-01-21 14:17:42 +0100
commitc22b0babed426af824b5afe668f3783bb0b757b6 (patch)
tree17b3a35c9b2668bbe6eb61e2f4ef1417b1456391
parentbbf794e666cb6eb5171d7a0df796c1b4afdca148 (diff)
fixupalpine2
-rw-r--r--.bash-powerline.sh5
-rw-r--r--.bashrc6
-rw-r--r--.vimrc1
3 files changed, 6 insertions, 6 deletions
diff --git a/.bash-powerline.sh b/.bash-powerline.sh
index c8f126a..96fed32 100644
--- a/.bash-powerline.sh
+++ b/.bash-powerline.sh
@@ -72,8 +72,7 @@ __powerline() {
local symbol="$COLOR_FAILURE$PS_SYMBOL $RESET"
fi
- local cwd="$COLOR_CWD\w$RESET"
- # local cwd="\e]0;\W\a$COLOR_CWD\w$RESET"
+ local wd="$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.
@@ -87,7 +86,7 @@ __powerline() {
local git="$COLOR_GIT$(__git_info)$RESET"
fi
- [ "$SSH_TTY" ] && PS1=": $host:$cwd$git$symbol" || PS1=": $cwd$git$symbol"
+ [ "$SSH_TTY" ] && PS1=": $host:$wd$git$symbol" || PS1=": $wd$git$symbol"
}
PROMPT_DIRTRIM=1
diff --git a/.bashrc b/.bashrc
index a53f7b8..7ecef70 100644
--- a/.bashrc
+++ b/.bashrc
@@ -19,7 +19,7 @@ export -f p
fixab() { printf "\x1f\x8b\x08\x00\x00\x00\x00\x00" ; tail -c +25 "$1"; }
#export BACKUP=bip:/home/backup/marc@$(hostname -s)
-export LESS=XFRx4
+export LESS=iXFRx4
# gnuplot display in terminal
export GNUTERM='sixelgd enhanced truecolor font "arial,9"'
@@ -96,8 +96,8 @@ 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 current directory and command in terminal title
+trap 'printf "\e]2;${PWD/~/\~}: ${BASH_COMMAND/ps1/bash}\a"' DEBUG
# Display git status in prompt
. ~/.bash-powerline.sh
diff --git a/.vimrc b/.vimrc
index c449c64..a0d1579 100644
--- a/.vimrc
+++ b/.vimrc
@@ -3,6 +3,7 @@
"set t_te= t_ti=
set ls=1 ruler
set ai ts=4 sw=4 noet
+set smartcase
"set mouse=a
syntax off
filetype on