1
1
mirror of https://github.com/rywng/dotfiles.git synced 2024-11-22 10:51:49 +08:00

Update prompt and other stuff

This commit is contained in:
Ryan 2023-11-23 12:18:23 +08:00
parent c7b0e12a7a
commit 4906475570
2 changed files with 26 additions and 26 deletions

5
.config/starship.toml Normal file
View File

@ -0,0 +1,5 @@
# Get editor completions based on the config schema
"$schema" = 'https://starship.rs/config-schema.json'
# Inserts a blank line between shell prompts
add_newline = true

35
.zshrc
View File

@ -14,19 +14,19 @@ if [[ ! -f $ZINIT_HOME/zinit.zsh ]]; then
fi
source "$ZINIT_HOME/zinit.zsh"
zinit ice lucid wait
zinit light zdharma-continuum/fast-syntax-highlighting
zinit ice lucid wait
zinit light agkozak/zsh-z
zinit ice lucid wait
zinit light juancldcmt/colorize
zinit ice lucid wait
zinit light juancldcmt/shortify.zsh
# zinit ice lucid wait
# zinit light juancldcmt/direnv.zsh
# Zinit packages
zinit wait lucid for \
zdharma-continuum/fast-syntax-highlighting \
agkozak/zsh-z \
zpm-zsh/colorize \
juancldcmt/shortify.zsh
zinit ice as"command" from"gh-r" \
atclone"./starship init zsh > init.zsh; ./starship completions zsh > _starship" \
atpull"%atclone" src"init.zsh"
zinit light starship/starship
zinit ice compile'(pure|async).zsh' pick'async.zsh' src'pure.zsh'
zinit light sindresorhus/pure
zinit light zsh-users/zsh-autosuggestions
zinit light hlissner/zsh-autopair
zinit light zsh-users/zsh-history-substring-search
@ -35,10 +35,6 @@ zinit light zsh-users/zsh-completions
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
# Load LS_COLORS if not present
test -n "$LS_COLORS" || eval $(dircolors) || echo 'Warning: Unable to set LS_COLORS'
# The following lines were added by compinstall
zstyle ':completion:*' auto-description '%F{green}Specify%f: %F{cyan}%d%f'
@ -76,9 +72,6 @@ unsetopt beep
bindkey -v
# End of lines configured by zsh-newuser-install
# pure config
zstyle :prompt:pure:prompt:success color green
#edit in vim
export KEYTIMEOUT=1
autoload edit-command-line
@ -112,11 +105,13 @@ export FZF_DEFAULT_OPTS="--reverse --cycle --height=40% --border sharp --prompt=
export GPG_TTY=$(tty) # fixes gpg
export JDK_HOME=/usr/lib/jvm/openjdk-17
export _JAVA_AWT_WM_NONREPARENTING=1
export HISTORY_SUBSTRING_SEARCH_FUZZY=1
#colored output
export MANWIDTH=${MANWIDTH:-78}
test -n "$LS_COLORS" || eval $(dircolors) || echo 'Warning: Unable to set LS_COLORS'
export MANLESS="Manual\ \$MAN_PN\ ?ltline\ %lt?L/%L.:byte\ %bB?s/%s..?\:?pB\ %pB\\%.."
export LESS="-RSM~"
export LESS="--use-color -RSM~"
#local path
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/cargo/bin:${HOME}/.cache/go/bin:${HOME}/.local/share/nvim/mason/bin"