mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-19 19:40:37 +02:00
cleanup custom-bash-options.sh
This commit is contained in:
parent
48a791426b
commit
72f6e4b09f
1 changed files with 2 additions and 4 deletions
|
@ -4,8 +4,6 @@
|
|||
[[ -n "${BASH_VERSION:-}" ]] || return
|
||||
# Not an interactive shell?
|
||||
[[ $- == *i* ]] || return
|
||||
# keep history clean from dups and spaces
|
||||
[[ $- == *i* ]] || return
|
||||
if [[ "${UID}" == 0 ]]; then
|
||||
# red for root user, host green, print full working dir
|
||||
PS1='[\e[1;31m\u\e[m@\e[1;32m\h\e[m \w]\$ '
|
||||
|
@ -13,9 +11,9 @@ else
|
|||
# blue for normal user,host green, print full working dir
|
||||
PS1='[\e[1;34m\u\e[m@\e[1;32m\h\e[m \w]\$ '
|
||||
fi
|
||||
# keep history clean from dups and spaces
|
||||
HISTCONTROL="erasedups:ignorespace"
|
||||
# color output
|
||||
alias ls='ls --color=auto'
|
||||
# color grep output
|
||||
alias grep='grep --color=auto'
|
||||
# if installed set neovim as default editor
|
||||
if command -v nvim >/dev/null; then
|
||||
|
|
Loading…
Reference in a new issue