summaryrefslogtreecommitdiff
path: root/.config/shell/.zshrc
diff options
context:
space:
mode:
authorfilip <“filip.rabiega@gmail.com”>2026-02-04 09:49:32 +0100
committerfilip <“filip.rabiega@gmail.com”>2026-02-04 09:49:32 +0100
commit6f0d171b301a0637935bb093d7fdf55bd0fe37ef (patch)
tree7d675a699f7ab30a4e762a39694c23c9f19ccc0b /.config/shell/.zshrc
parentab4d0326997fbecc0e8c4683b0a0606921dfc4b9 (diff)
downloaddotfiles-6f0d171b301a0637935bb093d7fdf55bd0fe37ef.tar.gz
dotfiles-6f0d171b301a0637935bb093d7fdf55bd0fe37ef.tar.bz2
dotfiles-6f0d171b301a0637935bb093d7fdf55bd0fe37ef.zip
remove conda init
Diffstat (limited to '.config/shell/.zshrc')
-rw-r--r--.config/shell/.zshrc41
1 files changed, 15 insertions, 26 deletions
diff --git a/.config/shell/.zshrc b/.config/shell/.zshrc
index 5a2776f..4b69802 100644
--- a/.config/shell/.zshrc
+++ b/.config/shell/.zshrc
@@ -3,7 +3,6 @@
# =============================================================================
# ─── 1) Fundamental environment ──────────────────────────────────────────────
-export PATH="$HOME/.local/bin:$PATH"
[ -f "$ALIASRC" ] && source "$ALIASRC"
# ─── 2) Shell behaviour ──────────────────────────────────────────────────────
@@ -15,6 +14,7 @@ setopt pushd_silent
setopt autocd
setopt interactive_comments
stty stop undef
+stty -ixon
unsetopt beep
zstyle ':completion:*' cache-path "${XDG_CACHE_HOME:-$HOME/.cache}/zsh/zcompcache"
@@ -22,11 +22,11 @@ zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}'
zstyle ':completion:*' use-cache on
# ─── 3) Prompt ───────────────────────────────────────────────────────────────
-blue=$(tput setaf 34)
-green=$(tput setaf 40)
-cyan=$(tput setaf 46)
-lime=$(tput setaf 154)
-reset=$(tput sgr0)
+local blue=$(tput setaf 34)
+local green=$(tput setaf 40)
+local cyan=$(tput setaf 46)
+local lime=$(tput setaf 154)
+local reset=$(tput sgr0)
# Precomputed colors avoid running commands in PS1
PS1="%{$blue%}%n%{$green%}@%{$cyan%}%m %{$lime%}%1~ %{$reset%}$ "
@@ -47,10 +47,10 @@ setopt hist_save_no_dups
# ─── 5) Vi mode & ZVM variables ──────────────────────────────────────────────
export KEYTIMEOUT=1
ZVM_LINE_INIT_MODE=$ZVM_MODE_INSERT
-ZVM_SYSTEM_CLIPBOARD_ENABLED=true
+ZVM_SYSTEM_CLIPBOARD_ENABLED="true"
ZVM_CLIPBOARD_COPY_CMD='xclip -selection clipboard'
ZVM_CLIPBOARD_PASTE_CMD='xclip -selection clipboard -o'
-ZVM_LAZY_KEYBINDINGS=false
+ZVM_LAZY_KEYBINDINGS="false"
# ─── 6) Zinit & plugins ──────────────────────────────────────────────────────
[[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]] && {
@@ -119,7 +119,7 @@ bindkey '^f' autosuggest-accept
# ─── 9) Custom functions & widgets ───────────────────────────────────────────
lfcd() {
local tmp="$(mktemp -uq)"
- trap 'rm -f $tmp >/dev/null 2>&1' EXIT
+ trap 'rm -f $tmp >/dev/null 2>&1 && trap - HUP INT QUIT TERM PWR EXIT' HUP INT QUIT TERM PWR EXIT
lf -last-dir-path="$tmp" "$@"
[ -f "$tmp" ] && {
local dir="$(cat "$tmp")"
@@ -127,16 +127,20 @@ lfcd() {
}
}
-lfcd_widget() { zle -I; BUFFER="lfcd"; zle accept-line; }
+lfcd_widget() { zle -I; BUFFER="lfcd" ; zle accept-line; }
+fzo_widget() { zle -I; BUFFER="fzo" ; zle accept-line; }
gitui_widget() { zle -I; BUFFER="gitui"; zle accept-line; }
-htop_widget() { zle -I; BUFFER="htop"; zle accept-line; }
+htop_widget() { zle -I; BUFFER="htop" ; zle accept-line; }
zle -N lfcd_widget
+zle -N fzo_widget
zle -N gitui_widget
zle -N htop_widget
bindkey -M viins '^o' lfcd_widget
bindkey -M vicmd '^o' lfcd_widget
+bindkey -M viins '^z' fzo_widget
+bindkey -M vicmd '^z' fzo_widget
bindkey -M viins '^g' gitui_widget
bindkey -M vicmd '^g' gitui_widget
bindkey -M viins '^t' htop_widget
@@ -146,20 +150,5 @@ bindkey -M vicmd '^t' htop_widget
eval "$(zoxide init zsh)"
eval "$(thefuck --alias)"
-# >>> conda initialize >>>
-# !! Contents within this block are managed by 'conda init' !!
-# __conda_setup="$('/home/filipek/.local/opt/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
-# if [ $? -eq 0 ]; then
-# eval "$__conda_setup"
-# else
-# if [ -f "/home/filipek/.local/opt/miniconda3/etc/profile.d/conda.sh" ]; then
-# . "/home/filipek/.local/opt/miniconda3/etc/profile.d/conda.sh"
-# else
-# export PATH="/home/filipek/.local/opt/miniconda3/bin:$PATH"
-# fi
-# fi
-# unset __conda_setup
-# <<< conda initialize <<<
-
# ─── 11) Local overrides (create this file if needed) ─────────────────────────
[ -f ~/.zshrc.local ] && source ~/.zshrc.local