1
0
Fork 0

various changes I don't remember.. again, lol

This commit is contained in:
Peter Domínguez 2026-02-28 13:39:46 -04:00
parent 06508d53ac
commit a3faa34f5e
13 changed files with 425 additions and 485 deletions

30
.zshrc
View file

@ -50,20 +50,20 @@ eval "$(starship init zsh)"
# 7. yazi wrapper
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 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"
#}
# 8. Aliases
# 8.1 zsh aliases
alias ls='yazi'
alias ls='nnn -deUxH'
alias aurdir='cd /home/peter/Downloads/AUR'
alias gitdir='cd /home/peter/Downloads/git'
alias notesdir='cd /home/peter/Nextcloud/Notes'
@ -291,3 +291,15 @@ bindkey -M vicmd 'j' history-substring-search-down
# 16. pipx stuff
export PATH="$PATH:/home/peter/.local/bin"
# 16. zsh stuff
export NNN_FCOLORS="D4DEB778E79F9F67D2E5E5D2"
export NNN_TRASH=1
export NNN_ARCHIVE="\\.(7z|a|ace|alz|arc|arj|bz|bz2|cab|cpio|deb|gz|jar|lha|lz|lzh|lzma|lzo|rar|rpm|rz|t7z|tar|tbz|tbz2|tgz|tlz|txz|tZ|tzo|war|xpi|xz|Z|zip)$"
export NNN_PLUG='p:preview-tui;c:x2sel'
export SPLIT='h'
export NNN_FIFO='/tmp/nnn.fifo'
export NNN_BMS='d:~/Downloads/;u:~/;b:/mnt/Backups;g:/media/Games;s:/mnt/SSD;n:~/Nextcloud;c:~/.config;r:/run/media;a:~/Downloads/AUR;!:~/.bin/sh;t:~/.local/share/Trash/files;y:/home/peter/Sync'
export VISUAL='vim'
# If not running interactively, don't do anything
[[ $- != *i* ]] && return