1
0
Fork 0

new shortcuts

This commit is contained in:
Luca Bilke 2024-03-19 22:40:06 +01:00
parent 10d585e707
commit 945f3d118f
4 changed files with 23 additions and 5 deletions

View File

@ -4,8 +4,8 @@ ch $XDG_CACHE_HOME
cf $XDG_CONFIG_HOME
dt $XDG_DATA_HOME
st $XDG_STATE_HOME
sc $HOME/.local/bin
se $HOME/.local/libexec
bn $HOME/.local/bin
le $HOME/.local/libexec
mn /mnt
co $XDG_DOCUMENTS_DIR/dev
dl $XDG_DOWNLOAD_DIR
@ -14,6 +14,6 @@ dk $XDG_DESKTOP_DIR
ms $XDG_MUSIC_DIR
pc $XDG_PICTURES_DIR
vd $XDG_VIDEOS_DIR
dot $STOW_DIR/dots
ds $STOW_DIR/dots
lg $HOME/.local/log
sv $HOME/.local/sv

View File

@ -34,7 +34,7 @@ alias \
# Shortening
alias \
ka="killall" \
ll="ls -lhpAN --color=auto --group-directories-first" \
ll="ls -lhpANX --color=auto --group-directories-first" \
subup="git submodule update --remote --recursive --merge"
# Quasi functions

View File

@ -0,0 +1,18 @@
hash -d h=/home/luca
hash -d ch=/home/luca/.cache
hash -d cf=/home/luca/.config
hash -d dt=/home/luca/.local/share
hash -d st=/home/luca/.local/state
hash -d bn=/home/luca/.local/bin
hash -d le=/home/luca/.local/libexec
hash -d mn=/mnt
hash -d co=/home/luca/Documents/dev
hash -d dl=/home/luca/Downloads
hash -d dm=/home/luca/Documents
hash -d dk=/home/luca/Desktop
hash -d ms=/home/luca/Music
hash -d pc=/home/luca/Pictures
hash -d vd=/home/luca/Videos
hash -d ds=/home/luca/.local/share/stow/dots
hash -d lg=/home/luca/.local/log
hash -d sv=/home/luca/.local/sv

View File

@ -39,7 +39,7 @@ write_dirs_tmp() {
path=$(eval "echo $path")
printf "hash -d %s=%s\n" "$shortcut" "$path" >>"/tmp/shortcuts/zsh_named_dirs"
printf "%\t%s\n" "$shortcut" "$path" >>"/tmp/shortcuts/lf_dirs"
printf "%s\t%s\n" "$shortcut" "$path" >>"/tmp/shortcuts/lf_dirs"
done
}