Fix for Linux and make consistent

This commit is contained in:
Loic Nageleisen 2021-03-02 12:41:07 +01:00
parent e317caaa8f
commit 9ca56d83c7
42 changed files with 106 additions and 52 deletions

View file

@ -22,4 +22,4 @@ set_color() {
[[ $prompt -eq 1 ]] && echo -n "\]"
}
# vim: ft=sh
# vim: ft=bash

View file

@ -120,4 +120,4 @@ ansi_sgr() {
eval "echo -n \$ANSI_SGR_INDEX__${key}__"
}
# vim: ft=sh
# vim: ft=bash

View file

@ -89,4 +89,4 @@ ansi_sgr() {
echo -n ${ANSI_SGR_INDEX[$1]}
}
# vim: ft=sh
# vim: ft=bash

View file

@ -54,3 +54,4 @@ clear_incomplete_line() {
fi
}
# vim: ft=bash

View file

@ -1,6 +1,3 @@
# shellcheck shell=bash
# vim: ft=sh
if type fzf 1>/dev/null 2>/dev/null; then
__fzf_select__() {
@ -58,3 +55,5 @@ bind '"\C-r": " \C-e\C-u`__fzf_history__`\e\C-e\e^\er"'
bind '"\ec": " \C-e\C-u`__fzf_cd__`\e\C-e\er\C-m"'
fi
# vim: ft=bash

View file

@ -13,4 +13,4 @@ export HISTCONTROL=ignoreboth
# more!
export HISTSIZE=10000
# vim: ft=sh
# vim: ft=bash

View file

@ -6,4 +6,4 @@ source ~/.profile
# include bashrc too if this is an interactive shell
[[ $- == *i* ]] && source ~/.bashrc
# vim: ft=sh
# vim: ft=bash

View file

@ -108,4 +108,4 @@ set_prompt() {
PS1="$(prompt_build_simple)"
}
# vim: ft=sh
# vim: ft=bash

View file

@ -66,4 +66,4 @@ prompt_end() {
CURRENT_BG=''
}
# vim: ft=sh:
# vim: ft=bash

View file

@ -45,4 +45,4 @@ set bell-style none
# disable deprecation warning
export BASH_SILENCE_DEPRECATION_WARNING=1
# vim: ft=sh
# vim: ft=bash

View file

@ -15,7 +15,7 @@ fi
set_term_title() {
case $TERM in
xterm*|rxvt*)
xterm*|rxvt*|alacritty)
local title="\033]2;$USER@${HOSTNAME%%.*}:${PWD/#$HOME/~}\a"
;;
*)
@ -25,4 +25,4 @@ set_term_title() {
printf "$title"
}
# vim: ft=sh
# vim: ft=bash