mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-09-20 03:50: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
|
[[ -n "${BASH_VERSION:-}" ]] || return
|
||||||
# Not an interactive shell?
|
# Not an interactive shell?
|
||||||
[[ $- == *i* ]] || return
|
[[ $- == *i* ]] || return
|
||||||
# keep history clean from dups and spaces
|
|
||||||
[[ $- == *i* ]] || return
|
|
||||||
if [[ "${UID}" == 0 ]]; then
|
if [[ "${UID}" == 0 ]]; then
|
||||||
# red for root user, host green, print full working dir
|
# red for root user, host green, print full working dir
|
||||||
PS1='[\e[1;31m\u\e[m@\e[1;32m\h\e[m \w]\$ '
|
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
|
# blue for normal user,host green, print full working dir
|
||||||
PS1='[\e[1;34m\u\e[m@\e[1;32m\h\e[m \w]\$ '
|
PS1='[\e[1;34m\u\e[m@\e[1;32m\h\e[m \w]\$ '
|
||||||
fi
|
fi
|
||||||
|
# keep history clean from dups and spaces
|
||||||
HISTCONTROL="erasedups:ignorespace"
|
HISTCONTROL="erasedups:ignorespace"
|
||||||
# color output
|
# color grep output
|
||||||
alias ls='ls --color=auto'
|
|
||||||
alias grep='grep --color=auto'
|
alias grep='grep --color=auto'
|
||||||
# if installed set neovim as default editor
|
# if installed set neovim as default editor
|
||||||
if command -v nvim >/dev/null; then
|
if command -v nvim >/dev/null; then
|
||||||
|
|
Loading…
Reference in a new issue