This commit is contained in:
tavo 2025-10-28 20:30:12 -06:00
parent 486145fb70
commit ac3e2f987b
4 changed files with 15 additions and 4 deletions

3
scripts/e Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
VIMINIT= nvim $@

View file

@ -50,5 +50,4 @@ alias \
scp="scp ${SSH_CONFIG}" \ scp="scp ${SSH_CONFIG}" \
rsync="rsync --rsh \"ssh ${SSH_CONFIG}\"" \ rsync="rsync --rsh \"ssh ${SSH_CONFIG}\"" \
lg="lazygit" \ lg="lazygit" \
adb='HOME="$XDG_DATA_HOME"/android adb' \ adb='HOME="$XDG_DATA_HOME"/android adb'
lvim="VIMINIT= nvim"

View file

@ -3,5 +3,5 @@
export \ export \
TERM="xterm-256color" \ TERM="xterm-256color" \
BROWSER="firefox" \ BROWSER="firefox" \
EDITOR="lvim" \ EDITOR="e" \
VISUAL="lvim" VISUAL="em"

9
shell/profile.d/yazi.sh Normal file
View file

@ -0,0 +1,9 @@
#!/bin/sh
y() {
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
yazi "$@" --cwd-file="$tmp"
IFS= read -r -d '' cwd <"$tmp"
[ -n "$cwd" ] && [ "$cwd" != "$PWD" ] && builtin cd -- "$cwd"
rm -f -- "$tmp"
}