Feat(Desktop): Use zsh on desktop
This commit is contained in:
1
zsh/.zprofile
Normal file
1
zsh/.zprofile
Normal file
@@ -0,0 +1 @@
|
||||
eval $(keychain --eval --agents "gpg,ssh" --quiet id_ed25519 E13CFA85C53F8062)
|
9
zsh/.zshenv
Normal file
9
zsh/.zshenv
Normal file
@@ -0,0 +1,9 @@
|
||||
export EDITOR=lvim
|
||||
export MANPAGER="lvim +Man!"
|
||||
export MOZ_ENABLE_WAYLAND=1
|
||||
|
||||
path+=('/home/minhradz/.cargo/bin')
|
||||
path+=('/home/minhradz/.local/bin')
|
||||
|
||||
export BUN_INSTALL="$HOME/.bun"
|
||||
export PATH="$BUN_INSTALL/bin:$PATH"
|
56
zsh/.zshrc
Normal file
56
zsh/.zshrc
Normal file
@@ -0,0 +1,56 @@
|
||||
|
||||
# The following lines were added by compinstall
|
||||
|
||||
zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate
|
||||
zstyle ':completion:*' list-colors ''
|
||||
zstyle :compinstall filename '/home/minhradz/.zshrc'
|
||||
|
||||
autoload -Uz compinit
|
||||
compinit
|
||||
# End of lines added by compinstall
|
||||
# Lines configured by zsh-newuser-install
|
||||
HISTFILE=~/.histfile
|
||||
HISTSIZE=1000
|
||||
SAVEHIST=1000
|
||||
# End of lines configured by zsh-newuser-install
|
||||
|
||||
export GPG_TTY=$(tty)
|
||||
|
||||
test -s ~/.alias && . ~/.alias || true
|
||||
|
||||
### Added by Zinit's installer
|
||||
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then
|
||||
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
|
||||
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit"
|
||||
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \
|
||||
print -P "%F{33} %F{34}Installation successful.%f%b" || \
|
||||
print -P "%F{160} The clone has failed.%f%b"
|
||||
fi
|
||||
|
||||
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
|
||||
autoload -Uz _zinit
|
||||
(( ${+_comps} )) && _comps[zinit]=_zinit
|
||||
|
||||
# Load a few important annexes, without Turbo
|
||||
# (this is currently required for annexes)
|
||||
zinit light-mode for \
|
||||
zdharma-continuum/zinit-annex-as-monitor \
|
||||
zdharma-continuum/zinit-annex-bin-gem-node \
|
||||
zdharma-continuum/zinit-annex-patch-dl \
|
||||
zdharma-continuum/zinit-annex-rust
|
||||
|
||||
### End of Zinit's installer chunk
|
||||
|
||||
# zsh-fzf-history-search
|
||||
zinit ice lucid wait'0'
|
||||
zinit light joshskidmore/zsh-fzf-history-search
|
||||
|
||||
# Two regular plugins loaded without investigating.
|
||||
zinit light zsh-users/zsh-autosuggestions
|
||||
zinit light zdharma-continuum/fast-syntax-highlighting
|
||||
zinit light chitoku-k/fzf-zsh-completions
|
||||
zinit light greymd/docker-zsh-completion
|
||||
|
||||
eval "$(fnm env --use-on-cd)"
|
||||
|
||||
eval "$(starship init zsh)"
|
Reference in New Issue
Block a user