80 lines
2.3 KiB
Bash
80 lines
2.3 KiB
Bash
# Lines configured by zsh-newuser-install
|
|
HISTFILE=~/.histfile
|
|
HISTSIZE=1000
|
|
SAVEHIST=1000
|
|
unsetopt beep
|
|
bindkey -e
|
|
# End of lines configured by zsh-newuser-install
|
|
# The following lines were added by compinstall
|
|
zstyle :compinstall filename '/home/$USER/.zshrc'
|
|
|
|
autoload -Uz compinit
|
|
compinit
|
|
# End of lines added by compinstall
|
|
|
|
unsetopt nomatch
|
|
#autoload -Uz url-quote-magic
|
|
#zle -N self-insert url-quote-magic
|
|
#autoload -Uz bracketed-paste-magic
|
|
#zle -N bracketed-paste bracketed-paste-magic
|
|
|
|
|
|
alias ls='ls --color=auto'
|
|
alias neofetch='neowofetch'
|
|
PS1=$'%{\e[0;35m%}%n%{\e[0m%}@%{\e[0m%}%m%{\e[0m%} %{\e[0;35m%}%~%{\e[0m%}> %{\e[0m%}'
|
|
|
|
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
|
|
|
bindkey "^[[1;5C" forward-word
|
|
bindkey "^[[1;5D" backward-word
|
|
bindkey "^[[3~" delete-char
|
|
|
|
zstyle ':completion:*' menu select
|
|
|
|
export WORDCHARS=''
|
|
|
|
typeset -A ZSH_HIGHLIGHT_STYLES
|
|
|
|
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]='fg=#9f9ffc'
|
|
ZSH_HIGHLIGHT_STYLES[precommand]='fg=magenta'
|
|
ZSH_HIGHLIGHT_STYLES[command]='fg=magenta'
|
|
ZSH_HIGHLIGHT_STYLES[builtin]='fg=magenta'
|
|
ZSH_HIGHLIGHT_STYLES[alias]='fg=magenta'
|
|
ZSH_HIGHLIGHT_STYLES[function]='fg=magenta'
|
|
ZSH_HIGHLIGHT_STYLES[unknown-token]='fg=red'
|
|
ZSH_HIGHLIGHT_STYLES[path]='fg=blue'
|
|
ZSH_HIGHLIGHT_STYLES[single-quoted-argument]='fg=cyan'
|
|
ZSH_HIGHLIGHT_STYLES[double-quoted-argument]='fg=cyan'
|
|
ZSH_HIGHLIGHT_STYLES[dollar-quoted-argument]='fg=cyan'
|
|
|
|
# [ -z "$NVM_DIR" ] && export NVM_DIR="$HOME/.nvm"
|
|
# [[ -s "$NVM_DIR/nvm.sh" ]] && source "/usr/share/nvm/nvm.sh"
|
|
# source /usr/share/nvm/nvm.sh
|
|
# source /usr/share/nvm/bash_completion
|
|
# source /usr/share/nvm/install-nvm-exec
|
|
export NVM_LAZY_LOAD=true
|
|
source ~/.config/zsh-nvm/zsh-nvm.plugin.zsh
|
|
export PNPM_HOME="/home/$USER/.local/share/pnpm"
|
|
export PATH="$PNPM_HOME:$PATH"
|
|
export PATH=/home/$USER/.local/bin:$PATH
|
|
# export PATH="/home/$USER/.local/share/gem/ruby/3.0.0/bin:$PATH"
|
|
export PATH="/home/$USER/go/bin/:/home/hazy/.local/share/pnpm:$PATH"
|
|
|
|
export CHROME_EXECUTABLE=chromium
|
|
export NODE_OPTIONS=--enable-source-maps
|
|
export EDITOR=nano
|
|
export GPG_TTY=$(tty)
|
|
|
|
alias pn="pnpm"
|
|
alias code="code . & disown && exit"
|
|
alias rename="perl-rename"
|
|
source ~/dotfiles/c
|
|
alias e="$EDITOR"
|
|
|
|
if command -v rbenv &> /dev/null
|
|
then
|
|
export PATH="$HOME/.rbenv/bin:$PATH"
|
|
eval "$(rbenv init -)"
|
|
fi
|