-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc.bak
42 lines (32 loc) · 1.16 KB
/
.zshrc.bak
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
export EDITOR="nvim"
export VISUAL="nvim"
alias clr="clear && clear"
alias c="clear && clear"
alias reload="source ~/.zshrc"
alias upd="brew upgrade && brew cleanup"
# yazi
function y() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
yazi "$@" --cwd-file="$tmp"
if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
builtin cd -- "$cwd"
fi
rm -f -- "$tmp"
}
function vman() {
nvim -c "Man $1 $2" -c 'silent only'
}
source <(fzf --zsh)
alias fnvim='nvim $(fzf --preview="bat --color=always {}")'
# source $(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh
# source $(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
export HOMEBREW_NO_ENV_HINTS=1
# Created by `pipx` on 2024-11-17 18:49:35
export PATH="$PATH:/${HOME}/.local/bin"
# BEGIN opam configuration
# This is useful if you're using opam as it adds:
# - the correct directories to the PATH
# - auto-completion for the opam binary
# This section can be safely removed at any time if needed.
[[ ! -r '/${HOME}/.opam/opam-init/init.zsh' ]] || source '/${HOME}/.opam/opam-init/init.zsh' > /dev/null 2> /dev/null
# END opam configuration