fix(user/shell/zsh): update zshrc
Signed-off-by: Matej Focko <me@mfocko.xyz>
This commit is contained in:
parent
8f7968a020
commit
219da943b9
1 changed files with 14 additions and 5 deletions
|
@ -1,15 +1,14 @@
|
||||||
export ZSH="/home/mfocko/.oh-my-zsh"
|
export ZSH="/home/mfocko/.oh-my-zsh"
|
||||||
|
|
||||||
ENABLE_CORRECTION=true
|
ENABLE_CORRECTION=true
|
||||||
plugins=(git common-aliases history systemd sudo zsh-autosuggestions zsh-syntax-highlighting zsh-aliases-exa fzf direnv taskwarrior autojump)
|
plugins=(git common-aliases history systemd sudo zsh-autosuggestions zsh-syntax-highlighting eza fzf direnv taskwarrior zoxide)
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
### add .local/bin to PATH ###
|
### add .local/bin to PATH ###
|
||||||
export GOPATH=$HOME/.go
|
export PATH=$HOME/.npm/bin:$HOME/.emacs.d/bin:$HOME/.local/bin:$PATH
|
||||||
export PATH=$HOME/.go/bin:$HOME/.npm/bin:$HOME/.emacs.d/bin:$HOME/.local/bin:$PATH
|
|
||||||
|
|
||||||
### zsh autosuggestions color ###
|
### zsh autosuggestions color ###
|
||||||
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=8,bold,underline"
|
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=8,underline,standout"
|
||||||
|
|
||||||
### Ruby gems ###
|
### Ruby gems ###
|
||||||
if which ruby >/dev/null && which gem >/dev/null; then
|
if which ruby >/dev/null && which gem >/dev/null; then
|
||||||
|
@ -25,7 +24,8 @@ alias kittyconf="$EDITOR ~/.config/kitty/kitty.conf"
|
||||||
|
|
||||||
### git aliases ###
|
### git aliases ###
|
||||||
export GIT_EDITOR=$EDITOR
|
export GIT_EDITOR=$EDITOR
|
||||||
alias gcs="git commit -v -s"
|
alias gcs="git commit --gpg-sign --signoff --verbose"
|
||||||
|
alias gcsp="git commit --gpg-sign --signoff --verbose --patch"
|
||||||
|
|
||||||
### tokens ###
|
### tokens ###
|
||||||
source ~/.tokens
|
source ~/.tokens
|
||||||
|
@ -54,6 +54,7 @@ export PATH=~/.cargo/bin:$PATH
|
||||||
# [[ -s "/opt/cargo/env" ]] && source /opt/cargo/env
|
# [[ -s "/opt/cargo/env" ]] && source /opt/cargo/env
|
||||||
|
|
||||||
### Go ###
|
### Go ###
|
||||||
|
export GOPATH=$HOME/.go
|
||||||
export PATH="$HOME/.go/bin:$PATH"
|
export PATH="$HOME/.go/bin:$PATH"
|
||||||
|
|
||||||
### SDKMan ###
|
### SDKMan ###
|
||||||
|
@ -171,11 +172,19 @@ export PATH="/opt/jdk-18/bin:$PATH"
|
||||||
# tmux new -s
|
# tmux new -s
|
||||||
# fi;
|
# fi;
|
||||||
|
|
||||||
|
### Bat ###
|
||||||
|
export BAT_THEME=Dracula
|
||||||
|
|
||||||
### sprunge ###
|
### sprunge ###
|
||||||
function sprunge_paste() {
|
function sprunge_paste() {
|
||||||
echo "Paste your code: "
|
echo "Paste your code: "
|
||||||
cat - | curl -F 'sprunge=<-' http://sprunge.us
|
cat - | curl -F 'sprunge=<-' http://sprunge.us
|
||||||
}
|
}
|
||||||
|
|
||||||
|
### rg wrapper with delta ###
|
||||||
|
function rgd() {
|
||||||
|
rg -C2 --json $@ | delta
|
||||||
|
}
|
||||||
|
|
||||||
### Starship ###
|
### Starship ###
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
|
|
Loading…
Reference in a new issue