terminal: Switch to starship prompt
Switched terminal environments (bash,zsh,nushell) to starship prompt (from pure-prompt/no prompt). Is mimicking the pure- prompt however, so no big change visible. Needs additional package on the system, which is added to the packages. Some remaining issues with nushell (vi prompt indicator).
This commit is contained in:
parent
8e3ef257d3
commit
546195ad56
5 changed files with 891 additions and 20 deletions
|
|
@ -5,7 +5,7 @@ CONFDIR="${XDG_CONFIG_HOME:-$HOME/.config}"
|
|||
ZSHCONFDIR="$CONFDIR/zsh"
|
||||
|
||||
# load completion, extended zsh moving syntax, zle edit in vim (or other $EDITOR) possibility
|
||||
autoload -Uz compinit zmv edit-command-line promptinit
|
||||
autoload -Uz compinit zmv edit-command-line
|
||||
|
||||
# Set completion style
|
||||
# The following lines were added by compinstall
|
||||
|
|
@ -60,17 +60,10 @@ zstyle ':fzf-tab:complete:kill:argument-rest' extra-opts --preview=$extract'ps -
|
|||
# give a preview of directory by exa when completing cd
|
||||
zstyle ':fzf-tab:complete:cd:*' extra-opts --preview=$extract'exa -1 --color=always $realpath'
|
||||
|
||||
# pure prompt init
|
||||
promptinit
|
||||
# make it single line
|
||||
prompt_newline='%666v'
|
||||
# show git stash status as a ≡
|
||||
zstyle :prompt:pure:git:stash show yes
|
||||
# show hostname if we are in a distrobox environment
|
||||
if [ -n "$DISTROBOX_ENTER_PATH" ] && [ -f /run/.containerenv ]; then
|
||||
local container=lxc
|
||||
fi
|
||||
prompt pure
|
||||
|
||||
# shellcheck source=alias
|
||||
[ -f "$CONFDIR/sh/alias" ] && source "$CONFDIR/sh/alias"
|
||||
|
|
@ -99,6 +92,7 @@ ENABLE_CORRECTION="true"
|
|||
# allow moving through directories without prepending cd
|
||||
setopt autocd
|
||||
|
||||
eval "$(starship init zsh)"
|
||||
eval "$(zoxide init zsh)"
|
||||
|
||||
# Speed up autocomplete, force prefix mapping
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue