1
0
Fork 0

update shortcuts

This commit is contained in:
Luca Bilke 2023-12-14 13:36:26 +01:00
parent 6f12e93999
commit b1844fec72
5 changed files with 5 additions and 5 deletions

View File

@ -10,7 +10,7 @@ mn /mnt
co $XDG_DOCUMENTS_DIR/code co $XDG_DOCUMENTS_DIR/code
dl $XDG_DOWNLOAD_DIR dl $XDG_DOWNLOAD_DIR
dm $XDG_DOCUMENTS_DIR dm $XDG_DOCUMENTS_DIR
dk $XDG_DOCUMENTS_DIR dk $XDG_DESKTOP_DIR
ms $XDG_MUSIC_DIR ms $XDG_MUSIC_DIR
pc $XDG_PICTURES_DIR pc $XDG_PICTURES_DIR
vd $XDG_VIDEOS_DIR vd $XDG_VIDEOS_DIR

View File

@ -9,7 +9,7 @@ map gmn cd "/mnt"
map gco cd "/home/luca/Documents/code" map gco cd "/home/luca/Documents/code"
map gdl cd "/home/luca/Downloads" map gdl cd "/home/luca/Downloads"
map gdm cd "/home/luca/Documents" map gdm cd "/home/luca/Documents"
map gdk cd "/home/luca/Documents" map gdk cd "/home/luca/Desktop"
map gms cd "/home/luca/Music" map gms cd "/home/luca/Music"
map gpc cd "/home/luca/Pictures" map gpc cd "/home/luca/Pictures"
map gvd cd "/home/luca/Videos" map gvd cd "/home/luca/Videos"

View File

@ -9,7 +9,7 @@ hash -d mn=/mnt
hash -d co=/home/luca/Documents/code hash -d co=/home/luca/Documents/code
hash -d dl=/home/luca/Downloads hash -d dl=/home/luca/Downloads
hash -d dm=/home/luca/Documents hash -d dm=/home/luca/Documents
hash -d dk=/home/luca/Documents hash -d dk=/home/luca/Desktop
hash -d ms=/home/luca/Music hash -d ms=/home/luca/Music
hash -d pc=/home/luca/Pictures hash -d pc=/home/luca/Pictures
hash -d vd=/home/luca/Videos hash -d vd=/home/luca/Videos

View File

@ -10,7 +10,7 @@ mn="cd /mnt" \
co="cd /home/luca/Documents/code" \ co="cd /home/luca/Documents/code" \
dl="cd /home/luca/Downloads" \ dl="cd /home/luca/Downloads" \
dm="cd /home/luca/Documents" \ dm="cd /home/luca/Documents" \
dk="cd /home/luca/Documents" \ dk="cd /home/luca/Desktop" \
ms="cd /home/luca/Music" \ ms="cd /home/luca/Music" \
pc="cd /home/luca/Pictures" \ pc="cd /home/luca/Pictures" \
vd="cd /home/luca/Videos" \ vd="cd /home/luca/Videos" \

View File

@ -23,4 +23,4 @@ eval "echo \"$(cat "$bmdirs")\"" | awk "!/^\s*#/ && !/^\s*\$/ {gsub(\"\\\s*#.*$\
eval "echo \"$(cat "$bmfiles")\"" | awk "!/^\s*#/ && !/^\s*\$/ {gsub(\"\\\s*#.*$\",\"\"); eval "echo \"$(cat "$bmfiles")\"" | awk "!/^\s*#/ && !/^\s*\$/ {gsub(\"\\\s*#.*$\",\"\");
printf(\"%s=\42\$EDITOR %s\42 \\\\\n\",\$1,\$2) >> \"$shell_shortcuts\" ; printf(\"%s=\42\$EDITOR %s\42 \\\\\n\",\$1,\$2) >> \"$shell_shortcuts\" ;
printf(\"hash -d %s=%s \n\",\$1,\$2) >> \"$zsh_named_dirs\" ; printf(\"hash -d %s=%s \n\",\$1,\$2) >> \"$zsh_named_dirs\" ;
printf(\"%s\n\",\$2) >> \"$lf_files\" ; printf(\"%s\n\",\$2) >> \"$lf_files\" }"