Merge branch 'main' of codeberg.org:aleidk/dots

This commit is contained in:
Alexander Navarro 2024-02-18 11:09:24 -03:00
commit 59004c4ac4
22 changed files with 5840 additions and 10 deletions

View file

@ -51,3 +51,12 @@ help() {
fzf-jq() {
echo '' | fzf --print-query --preview="jq -r {q} <$@"
}
function ya() {
local tmp="$(mktemp -t "yazi-cwd.XXXXX")"
yazi "$@" --cwd-file="$tmp"
if cwd="$(cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
cd -- "$cwd"
fi
rm -f -- "$tmp"
}

View file

@ -34,6 +34,10 @@ update_path "$HOME/.local/share/rtx/shims"
. "$HOME/.cargo/env"
if [[ "$DOTS/config/zsh/zprofile.local" -e ]]; then
source "$DOTS/config/zsh/zprofile.local"
fi
if [[ $OSTYPE =~ 'darwin' ]]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
fi

View file

@ -108,6 +108,6 @@ if [[ "$ZPROF" = true ]]; then
fi
eval "$(starship init zsh)"
eval "$(rtx activate zsh)"
# eval "$(zellij setup --generate-auto-start zsh)"
eval "$(zoxide init zsh)"
eval "$(mise activate zsh)"