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:
parent
c7b0e12a7a
commit
4906475570
5
.config/starship.toml
Normal file
5
.config/starship.toml
Normal 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
|
37
.zshrc
37
.zshrc
@ -3,7 +3,7 @@ echo
|
|||||||
echo '\033[0;35m /w '$(awk -F "=" '/^NAME/ {print $2}' 2> /dev/null < /etc/os-release || uname -o)
|
echo '\033[0;35m /w '$(awk -F "=" '/^NAME/ {print $2}' 2> /dev/null < /etc/os-release || uname -o)
|
||||||
echo '\033[0;34m @ '$HOST
|
echo '\033[0;34m @ '$HOST
|
||||||
|
|
||||||
#Install zinit if no zinit is present
|
# Install zinit if no zinit is present
|
||||||
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
|
ZINIT_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/zinit/zinit.git"
|
||||||
if [[ ! -f $ZINIT_HOME/zinit.zsh ]]; then
|
if [[ ! -f $ZINIT_HOME/zinit.zsh ]]; then
|
||||||
print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma/zinit%F{220})…%f"
|
print -P "%F{33}▓▒░ %F{220}Installing %F{33}DHARMA%F{220} Initiative Plugin Manager (%F{33}zdharma/zinit%F{220})…%f"
|
||||||
@ -14,19 +14,19 @@ if [[ ! -f $ZINIT_HOME/zinit.zsh ]]; then
|
|||||||
fi
|
fi
|
||||||
source "$ZINIT_HOME/zinit.zsh"
|
source "$ZINIT_HOME/zinit.zsh"
|
||||||
|
|
||||||
zinit ice lucid wait
|
# Zinit packages
|
||||||
zinit light zdharma-continuum/fast-syntax-highlighting
|
|
||||||
zinit ice lucid wait
|
zinit wait lucid for \
|
||||||
zinit light agkozak/zsh-z
|
zdharma-continuum/fast-syntax-highlighting \
|
||||||
zinit ice lucid wait
|
agkozak/zsh-z \
|
||||||
zinit light juancldcmt/colorize
|
zpm-zsh/colorize \
|
||||||
zinit ice lucid wait
|
juancldcmt/shortify.zsh
|
||||||
zinit light juancldcmt/shortify.zsh
|
|
||||||
# zinit ice lucid wait
|
zinit ice as"command" from"gh-r" \
|
||||||
# zinit light juancldcmt/direnv.zsh
|
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 zsh-users/zsh-autosuggestions
|
||||||
zinit light hlissner/zsh-autopair
|
zinit light hlissner/zsh-autopair
|
||||||
zinit light zsh-users/zsh-history-substring-search
|
zinit light zsh-users/zsh-history-substring-search
|
||||||
@ -35,10 +35,6 @@ zinit light zsh-users/zsh-completions
|
|||||||
autoload -Uz _zinit
|
autoload -Uz _zinit
|
||||||
(( ${+_comps} )) && _comps[zinit]=_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
|
# The following lines were added by compinstall
|
||||||
|
|
||||||
zstyle ':completion:*' auto-description '%F{green}Specify%f: %F{cyan}%d%f'
|
zstyle ':completion:*' auto-description '%F{green}Specify%f: %F{cyan}%d%f'
|
||||||
@ -76,9 +72,6 @@ unsetopt beep
|
|||||||
bindkey -v
|
bindkey -v
|
||||||
# End of lines configured by zsh-newuser-install
|
# End of lines configured by zsh-newuser-install
|
||||||
|
|
||||||
# pure config
|
|
||||||
zstyle :prompt:pure:prompt:success color green
|
|
||||||
|
|
||||||
#edit in vim
|
#edit in vim
|
||||||
export KEYTIMEOUT=1
|
export KEYTIMEOUT=1
|
||||||
autoload edit-command-line
|
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 GPG_TTY=$(tty) # fixes gpg
|
||||||
export JDK_HOME=/usr/lib/jvm/openjdk-17
|
export JDK_HOME=/usr/lib/jvm/openjdk-17
|
||||||
export _JAVA_AWT_WM_NONREPARENTING=1
|
export _JAVA_AWT_WM_NONREPARENTING=1
|
||||||
|
export HISTORY_SUBSTRING_SEARCH_FUZZY=1
|
||||||
|
|
||||||
#colored output
|
#colored output
|
||||||
export MANWIDTH=${MANWIDTH:-78}
|
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 MANLESS="Manual\ \$MAN_PN\ ?ltline\ %lt?L/%L.:byte\ %bB?s/%s..?\:?pB\ %pB\\%.."
|
||||||
export LESS="-RSM~"
|
export LESS="--use-color -RSM~"
|
||||||
|
|
||||||
#local path
|
#local path
|
||||||
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/cargo/bin:${HOME}/.cache/go/bin:${HOME}/.local/share/nvim/mason/bin"
|
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.scripts:${HOME}/cargo/bin:${HOME}/.cache/go/bin:${HOME}/.local/share/nvim/mason/bin"
|
||||||
|
Loading…
Reference in New Issue
Block a user