updated zshrc
This commit is contained in:
parent
405ba3fd5d
commit
8ce5ac1bde
30
.zshrc
30
.zshrc
@ -22,7 +22,7 @@
|
||||
# - pkgfile
|
||||
# - trash-cli (with gvfs)
|
||||
|
||||
export PATH=$HOME/.local/bin:$HOME/.dotnet/tools:$XDG_DATA_HOME/npm_global/bin:$XDG_DATA_HOME/npm_global/bin:$XDG_DATA_HOME/cargo/bin:$PATH
|
||||
export PATH=$HOME/.local/bin:$HOME/.dotnet/tools:$XDG_DATA_HOME/npm_global/bin:$XDG_DATA_HOME/cargo/bin:$PATH
|
||||
|
||||
[[ $- != *i* ]] && return
|
||||
[ -n $SSH_CONNECTION ] && source ~/.profile
|
||||
@ -40,8 +40,8 @@ if [ -z $SSH_CONNECTION ]; then
|
||||
fi
|
||||
fi
|
||||
|
||||
export ZSH="/usr/share/oh-my-zsh"
|
||||
export HISTFILE="$XDG_CACHE_HOME/zsh_history"
|
||||
ZSH="/usr/share/oh-my-zsh"
|
||||
HISTFILE="$XDG_CACHE_HOME/zsh_history"
|
||||
|
||||
if [[ -n $SSH_CONNECTION ]]; then
|
||||
ZSH_THEME="gallois"
|
||||
@ -54,27 +54,26 @@ else
|
||||
fi
|
||||
|
||||
# wal subshell
|
||||
(cat ~/.cache/wal/sequences &)
|
||||
#(cat ~/.cache/wal/sequences &)
|
||||
|
||||
DISABLE_UPDATE_PROMPT=true
|
||||
DISABLE_AUTO_UPDATE=true
|
||||
ZSH_CACHE_DIR="$XDG_CACHE_HOME/oh-my-zsh" # mkdir ~/.cache/oh-my-zsh
|
||||
_Z_DATA="$XDG_CACHE_HOME/z"
|
||||
|
||||
ZSH_COMPDUMP=$ZSH/cache/.zcompdump-$HOST
|
||||
|
||||
plugins=(
|
||||
git
|
||||
last-working-dir
|
||||
colored-man-pages
|
||||
extract
|
||||
z
|
||||
)
|
||||
|
||||
autoload -U compinit
|
||||
|
||||
# start oh my zsh
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
autoload -U compinit -d "$XDG_CACHE_HOME/zcompdump-$ZSH_VERSION"
|
||||
|
||||
# Sytax highlight
|
||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||
|
||||
@ -82,10 +81,12 @@ source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zs
|
||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||
|
||||
# command not found
|
||||
source /usr/share/doc/pkgfile/command-not-found.zsh
|
||||
source /usr/share/doc/pkgfile/command-not-found.zsh # dont forget to run pkgfile -u
|
||||
|
||||
# Variables
|
||||
|
||||
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||
|
||||
# ZSH percent fix
|
||||
export PROMPT_EOL_MARK=""
|
||||
|
||||
@ -93,10 +94,6 @@ export PROMPT_EOL_MARK=""
|
||||
export FZF_DEFAULT_COMMAND="fd --type file --color=always"
|
||||
export FZF_DEFAULT_OPTS="--ansi"
|
||||
|
||||
# nvm
|
||||
[ -z "$NVM_DIR" ] && export NVM_DIR="$XDG_CACHE_HOME/nvm"
|
||||
alias nvm-init="source /usr/share/nvm/nvm.sh;source /usr/share/nvm/install-nvm-exec"
|
||||
|
||||
# Aliases
|
||||
alias vim="nvim"
|
||||
alias sudo='sudo '
|
||||
@ -105,20 +102,19 @@ alias please='sudo '
|
||||
[ -z $SSH_CONNECTION ] && alias ls='exa --icons'
|
||||
|
||||
alias svim='sudo -E nvim'
|
||||
alias xclip='xclip -selection "clipboard"'
|
||||
alias mixer='ncpamixer'
|
||||
alias dotfiles="git --git-dir=$XDG_DATA_HOME/dotfiles-remastered --work-tree=$HOME" # dotfile config --local status.showUntrackedFiles no
|
||||
alias open="xdg-open"
|
||||
alias mixer="pulsemixer"
|
||||
alias yt-dl-audio="youtube-dl --extract-audio --audio-format mp3 -o '%(title)s.%(ext)s'"
|
||||
alias yt-dl-audio="yt-dlp --extract-audio --audio-format mp3 -o '%(title)s.%(ext)s'"
|
||||
alias rm="trash"
|
||||
alias modx="chmod +x"
|
||||
alias mv="mv -iv"
|
||||
alias cp="cp -riv"
|
||||
alias mkdir="mkdir -pv"
|
||||
alias ssh="TERM=xterm-256color ssh"
|
||||
alias yeet="sudo pacman -Rns"
|
||||
alias ip="ip -c=auto"
|
||||
alias syu="sudo pacman -Syu"
|
||||
alias virsh="virsh -c qemu:///system"
|
||||
alias k="kubectl"
|
||||
alias ssh="TERM=xterm-256color ssh"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user