Use system \[\033[01;32m\]\u@\h\[\033[01;34m\] \w\n\$\[\033[00m\] + bash completion for doas.

This commit is contained in:
Sheldon Lee 2022-04-05 19:39:04 +08:00
parent 20c91b5e7f
commit dfd2a1c9fd

View File

@ -3,14 +3,17 @@
# #
# If not running interactively, don't do anything # If not running interactively, don't do anything
#[[ $- != *i* ]] && return [[ $- != *i* ]] && return
alias ls='ls --color=auto' alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ ' #PS1='[\u@\h \W]\$ '
# vi bindings # vi bindings
set -o vi set -o vi
# doas bash completion
complete -cf doas
# default editor # default editor
export EDITOR=nvim export EDITOR=nvim
export VISUAL=nvim export VISUAL=nvim