updat
This commit is contained in:
parent
486145fb70
commit
ac3e2f987b
4 changed files with 15 additions and 4 deletions
3
scripts/e
Executable file
3
scripts/e
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
VIMINIT= nvim $@
|
||||
|
|
@ -50,5 +50,4 @@ alias \
|
|||
scp="scp ${SSH_CONFIG}" \
|
||||
rsync="rsync --rsh \"ssh ${SSH_CONFIG}\"" \
|
||||
lg="lazygit" \
|
||||
adb='HOME="$XDG_DATA_HOME"/android adb' \
|
||||
lvim="VIMINIT= nvim"
|
||||
adb='HOME="$XDG_DATA_HOME"/android adb'
|
||||
|
|
|
|||
|
|
@ -3,5 +3,5 @@
|
|||
export \
|
||||
TERM="xterm-256color" \
|
||||
BROWSER="firefox" \
|
||||
EDITOR="lvim" \
|
||||
VISUAL="lvim"
|
||||
EDITOR="e" \
|
||||
VISUAL="em"
|
||||
|
|
|
|||
9
shell/profile.d/yazi.sh
Normal file
9
shell/profile.d/yazi.sh
Normal 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"
|
||||
}
|
||||
Loading…
Reference in a new issue