mirror of
https://github.com/getcompanion-ai/computer-guest.git
synced 2026-04-15 04:03:25 +00:00
feat: preloaded-packages and bundle (#5)
This commit is contained in:
parent
09c9671fcb
commit
63b6a452b0
4 changed files with 77 additions and 8 deletions
|
|
@ -7,6 +7,10 @@ computer_prompt_name() {
|
|||
printf '%s' "${COMPUTER_NAME:-${COMPUTER_HANDLE:-microagentcomputer}}"
|
||||
}
|
||||
|
||||
export EDITOR="${EDITOR:-nvim}"
|
||||
export VISUAL="${VISUAL:-nvim}"
|
||||
alias vim='nvim'
|
||||
alias vi='nvim'
|
||||
alias ls='eza --group-directories-first --icons=auto'
|
||||
alias la='eza -a --group-directories-first --icons=auto'
|
||||
alias ll='eza -lah --git --group-directories-first --icons=auto'
|
||||
|
|
|
|||
|
|
@ -7,13 +7,31 @@ setopt extended_history
|
|||
setopt hist_ignore_all_dups
|
||||
setopt hist_reduce_blanks
|
||||
setopt share_history
|
||||
setopt prompt_subst
|
||||
|
||||
bindkey -v
|
||||
bindkey '^?' backward-delete-char
|
||||
|
||||
computer_prompt_name() {
|
||||
printf '%s' "${COMPUTER_NAME:-${COMPUTER_HANDLE:-microagentcomputer}}"
|
||||
}
|
||||
|
||||
ZSH_CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/zsh"
|
||||
export ZSH_COMPDUMP="${ZSH_COMPDUMP:-$ZSH_CACHE_DIR/.zcompdump}"
|
||||
mkdir -p "$ZSH_CACHE_DIR" 2>/dev/null || true
|
||||
|
||||
autoload -Uz compinit
|
||||
zmodload zsh/complist 2>/dev/null || true
|
||||
if [ -s "$ZSH_COMPDUMP" ]; then
|
||||
compinit -C -d "$ZSH_COMPDUMP"
|
||||
else
|
||||
compinit -d "$ZSH_COMPDUMP"
|
||||
fi
|
||||
|
||||
export EDITOR="${EDITOR:-nvim}"
|
||||
export VISUAL="${VISUAL:-nvim}"
|
||||
alias vim='nvim'
|
||||
alias vi='nvim'
|
||||
alias ls='eza --group-directories-first --icons=auto'
|
||||
alias la='eza -a --group-directories-first --icons=auto'
|
||||
alias ll='eza -lah --git --group-directories-first --icons=auto'
|
||||
|
|
@ -33,7 +51,8 @@ if [ -r /opt/zsh/pure/pure.zsh ] && [ -r /opt/zsh/pure/async.zsh ]; then
|
|||
promptinit
|
||||
if prompt pure >/dev/null 2>&1; then
|
||||
zstyle ':prompt:pure:path' color blue
|
||||
PROMPT='%F{green}$(computer_prompt_name)%f ${PROMPT}'
|
||||
pure_prompt="$PROMPT"
|
||||
PROMPT='%F{green}$(computer_prompt_name)%f '"$pure_prompt"
|
||||
else
|
||||
PROMPT='%F{green}$(computer_prompt_name)%f %F{blue}%~%f %# '
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue