shell: bash append history, aliases, hs alias, move zsh unalias

This commit is contained in:
lupan committed 2026-10-01 23:19:35 +02:00
1 parent 72661f69bd
commit a0e47e0d78
3 files changed
+17 -9

No files matched your search

+8 -1
View File
@@ -5,12 +5,19 @@
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
shopt -s histappend
PROMPT_COMMAND="history -a; history -n; $PROMPT_COMMAND"
PS1='\e[34m\u@\h\e[0m \e[32m\W\e[0m \$ '
HISTTIMEFORMAT='%F %R '
function before_command() { echo -ne '\e[2 q'; }
trap before_command DEBUG
# Aliases.
for f in ~/.config/shellconfig/*.sh; do source "$f"; done
if [[ -f /usr/share/bash-completion/bash_completion ]]; then
. /usr/share/bash-completion/bash_completion
fi