mirror of
https://github.com/reonokiy/dotfiles.git
synced 2025-06-15 14:12:53 +02:00
update
This commit is contained in:
parent
1b97d02ec0
commit
1148631d61
3 changed files with 35 additions and 38 deletions
|
@ -1 +0,0 @@
|
||||||
--ozone-platform=wayland
|
|
|
@ -1,2 +0,0 @@
|
||||||
--enable-features=WaylandWindowDecorations
|
|
||||||
--ozone-platform-hint=wayland
|
|
|
@ -39,11 +39,11 @@ key[Shift-Tab]="${terminfo[kcbt]}"
|
||||||
# Finally, make sure the terminal is in application mode, when zle is
|
# Finally, make sure the terminal is in application mode, when zle is
|
||||||
# active. Only then are the values from $terminfo valid.
|
# active. Only then are the values from $terminfo valid.
|
||||||
if (( ${+terminfo[smkx]} && ${+terminfo[rmkx]} )); then
|
if (( ${+terminfo[smkx]} && ${+terminfo[rmkx]} )); then
|
||||||
autoload -Uz add-zle-hook-widget
|
autoload -Uz add-zle-hook-widget
|
||||||
function zle_application_mode_start { echoti smkx }
|
function zle_application_mode_start { echoti smkx }
|
||||||
function zle_application_mode_stop { echoti rmkx }
|
function zle_application_mode_stop { echoti rmkx }
|
||||||
add-zle-hook-widget -Uz zle-line-init zle_application_mode_start
|
add-zle-hook-widget -Uz zle-line-init zle_application_mode_start
|
||||||
add-zle-hook-widget -Uz zle-line-finish zle_application_mode_stop
|
add-zle-hook-widget -Uz zle-line-finish zle_application_mode_stop
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ key[Control-Right]="${terminfo[kRIT5]}"
|
||||||
|
|
||||||
# nix config (load nix first to get available pkgs in PATH)
|
# nix config (load nix first to get available pkgs in PATH)
|
||||||
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then
|
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then
|
||||||
. $HOME/.nix-profile/etc/profile.d/nix.sh;
|
. $HOME/.nix-profile/etc/profile.d/nix.sh;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# custom PATH
|
# custom PATH
|
||||||
|
@ -78,7 +78,7 @@ export GOPATH=$HOME/.go
|
||||||
|
|
||||||
# fpath
|
# fpath
|
||||||
if [[ -d "/home/linuxbrew/.linuxbrew/share/zsh/site-functions" ]]; then
|
if [[ -d "/home/linuxbrew/.linuxbrew/share/zsh/site-functions" ]]; then
|
||||||
fpath=(/home/linuxbrew/.linuxbrew/share/zsh/site-functions $fpath)
|
fpath=(/home/linuxbrew/.linuxbrew/share/zsh/site-functions $fpath)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -94,75 +94,75 @@ fi
|
||||||
|
|
||||||
# arch linux zsh extensions
|
# arch linux zsh extensions
|
||||||
if [[ -e "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" ]]; then
|
if [[ -e "/usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh" ]]; then
|
||||||
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
|
||||||
fi
|
fi
|
||||||
if [[ -e "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ]]; then
|
if [[ -e "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ]]; then
|
||||||
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# micromamba
|
# micromamba
|
||||||
if command -v micromamba &> /dev/null; then
|
if command -v micromamba &> /dev/null; then
|
||||||
export MAMBA_EXE=$(which micromamba);
|
export MAMBA_EXE=$(which micromamba);
|
||||||
export MAMBA_ROOT_PREFIX='~/.micromamba';
|
export MAMBA_ROOT_PREFIX='~/.micromamba';
|
||||||
__mamba_setup="$("$MAMBA_EXE" shell hook --shell zsh --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
|
__mamba_setup="$("$MAMBA_EXE" shell hook --shell zsh --root-prefix "$MAMBA_ROOT_PREFIX" 2> /dev/null)"
|
||||||
if [ $? -eq 0 ]; then
|
if [ $? -eq 0 ]; then
|
||||||
eval "$__mamba_setup"
|
eval "$__mamba_setup"
|
||||||
else
|
else
|
||||||
alias micromamba="$MAMBA_EXE" # Fallback on help from mamba activate
|
alias micromamba="$MAMBA_EXE" # Fallback on help from mamba activate
|
||||||
fi
|
fi
|
||||||
unset __mamba_setup
|
unset __mamba_setup
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# starship config
|
# starship config
|
||||||
if command -v starship &> /dev/null; then
|
if command -v starship &> /dev/null; then
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# fnm config
|
# fnm config
|
||||||
if command -v fnm &> /dev/null; then
|
if command -v fnm &> /dev/null; then
|
||||||
eval "$(fnm env --use-on-cd)"
|
eval "$(fnm env --use-on-cd)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
# thefuck config
|
# thefuck config
|
||||||
fuck() {
|
fuck() {
|
||||||
unfunction fuck
|
unfunction fuck
|
||||||
eval $(thefuck --alias)
|
eval $(thefuck --alias)
|
||||||
fuck "$@"
|
fuck "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
# yazi config
|
# yazi config
|
||||||
function ya() {
|
function ya() {
|
||||||
local tmp="$(mktemp -t "yazi-cwd.XXXXX")"
|
local tmp="$(mktemp -t "yazi-cwd.XXXXX")"
|
||||||
yazi "$@" --cwd-file="$tmp"
|
yazi "$@" --cwd-file="$tmp"
|
||||||
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
|
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
|
||||||
cd -- "$cwd"
|
cd -- "$cwd"
|
||||||
fi
|
fi
|
||||||
rm -f -- "$tmp"
|
rm -f -- "$tmp"
|
||||||
}
|
}
|
||||||
|
|
||||||
# atuin config
|
# atuin config
|
||||||
if command -v atuin &> /dev/null; then
|
if command -v atuin &> /dev/null; then
|
||||||
eval "$(atuin init zsh --disable-up-arrow)"
|
eval "$(atuin init zsh --disable-up-arrow)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# zoxide config
|
# zoxide config
|
||||||
if command -v zoxide &> /dev/null; then
|
if command -v zoxide &> /dev/null; then
|
||||||
eval "$(zoxide init zsh)"
|
eval "$(zoxide init zsh)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# pyenv config
|
# pyenv config
|
||||||
if command -v pyenv &> /dev/null; then
|
if command -v pyenv &> /dev/null; then
|
||||||
export PYENV_ROOT="$HOME/.pyenv"
|
export PYENV_ROOT="$HOME/.pyenv"
|
||||||
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
||||||
eval "$(pyenv init -)"
|
eval "$(pyenv init -)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# direnv
|
# direnv
|
||||||
if command -v direnv &> /dev/null; then
|
if command -v direnv &> /dev/null; then
|
||||||
eval "$(direnv hook zsh)"
|
eval "$(direnv hook zsh)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# editors
|
# editors
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue