diff options
-rw-r--r-- | .bashrc | 11 | ||||
-rw-r--r-- | .config/readline/inputrc | 16 |
2 files changed, 24 insertions, 3 deletions
@@ -5,9 +5,16 @@ # If not running interactively, don't do anything [[ $- != *i* ]] && return -alias ll='ls -lah --color=auto' -PS1='[\u@\h \W]\$ ' +# default PS1 +#PS1='[\u@\h \W]\$ ' + +# 1: bold, 91: bright red +# \e[m act like \e[0m, means reset so commands after it will not be colored +# https://en.wikipedia.org/wiki/ANSI_escape_code#3-bit_and_4-bit +PS1='\e[1;91m[\u@\h \W]\$ \e[0m' +alias ls='ls --color=auto' +alias ll='ls -lah --color=auto' alias cfgc='/usr/bin/git --git-dir=$HOME/.mycfg_cross_platform/ --work-tree=$HOME' alias cfgl='/usr/bin/git --git-dir=$HOME/.mycfg_local/ --work-tree=$HOME' diff --git a/.config/readline/inputrc b/.config/readline/inputrc index e67d5750..a666b091 100644 --- a/.config/readline/inputrc +++ b/.config/readline/inputrc @@ -1,5 +1,19 @@ -# https://github.com/LukeSmithxyz/voidrice/blob/2440ad83e9e9cf2f927efbaef618513e0df3cbda/.config/shell/inputrc $include /etc/inputrc + +# from archwiki realine +# Color files by types +# Note that this may cause completion text blink in some terminals (e.g. xterm). +set colored-stats On +# Append char to indicate type +set visible-stats On +# Mark symlinked directories +set mark-symlinked-directories On +# Color the common prefix +set colored-completion-prefix On +# Color the common prefix in menu-complete +set menu-complete-display-prefix On + +# https://github.com/LukeSmithxyz/voidrice/blob/2440ad83e9e9cf2f927efbaef618513e0df3cbda/.config/shell/inputrc set editing-mode vi $if mode=vi |