1
0
Fork 0

add code shortcut

This commit is contained in:
Luca Bilke 2023-07-01 14:39:42 +02:00
parent d26df6eab1
commit 2d833252fe
4 changed files with 52 additions and 18 deletions

View file

@ -1,16 +1,17 @@
# You can add comments to these files with #
h $HOME
ch ${XDG_CACHE_HOME:-$HOME/.cache}
cf ${XDG_CONFIG_HOME:-$HOME/.config}
dt ${XDG_DATA_HOME:-$HOME/.local/share}
ch $XDG_CACHE_HOME
co $XDG_DOCUMENTS_DIR/code
cf $XDG_CONFIG_HOME
dt $XDG_DATA_HOME
sr $HOME/.local/src
it $HOME/.local/src/git
sc $HOME/.local/bin
mn /mnt
dl ${XDG_DOWNLOAD_DIR:-$HOME/Downloads}
dm ${XDG_DOCUMENTS_DIR:-$HOME/Documents}
dk ${XDG_DOCUMENTS_DIR:-$HOME/Desktop}
ms ${XDG_MUSIC_DIR:-$HOME/Music}
pc ${XDG_PICTURES_DIR:-$HOME/Pictures}
vd ${XDG_VIDEOS_DIR:-$HOME/Videos}
dl $XDG_DOWNLOAD_DIR
dm $XDG_DOCUMENTS_DIR
dk $XDG_DOCUMENTS_DIR
ms $XDG_MUSIC_DIR
pc $XDG_PICTURES_DIR
vd $XDG_VIDEOS_DIR
dot $STOW_DIR/dots

View file

@ -1,8 +1,8 @@
map gh cd "/home/luca"
map gch cd "/home/luca/.cache"
map gco cd "/home/luca/Documents/code"
map gcf cd "/home/luca/.config"
map gdt cd "/home/luca/.local/share"
map gst cd "/home/luca/.local/state"
map gsr cd "/home/luca/.local/src"
map git cd "/home/luca/.local/src/git"
map gsc cd "/home/luca/.local/bin"
@ -14,5 +14,16 @@ map gms cd "/home/luca/Music"
map gpc cd "/home/luca/Pictures"
map gvd cd "/home/luca/Videos"
map gdot cd "/home/luca/.local/share/stow/dots"
map Ebf $$EDITOR "/home/luca/.local/share/bookmarks/files"
map Ebd $$EDITOR "/home/luca/.local/share/bookmarks/directories"
map Ebf $$EDITOR "/home/luca/.config/shell/bm-files"
map Ebd $$EDITOR "/home/luca/.config/shell/bm-dirs"
map Ecfx $$EDITOR "/home/luca/.config/x11/xresources"
map EcfX $$EDITOR "/home/luca/.config/x11/xprofile"
map Ecfb $$EDITOR "/home/luca/.local/src/dwmblocks/config.h"
map Ecfk $$EDITOR "/home/luca/.config/kitty/kitty.conf"
map EcfK $$EDITOR "/home/luca/.config/kitty/kittyfullscreen.conf"
map Ecfv $$EDITOR "/home/luca/.config/lvim/config.lua"
map Ecfz $$EDITOR "/home/luca/.config/zsh/.zshrc"
map Ecfa $$EDITOR "/home/luca/.config/shell/aliasrc"
map Ecfp $$EDITOR "/home/luca/.config/shell/profile"
map Ecfl $$EDITOR "/home/luca/.config/lf/lfrc"
map EcfL $$EDITOR "/home/luca/.config/lf/preview"

View file

@ -1,8 +1,8 @@
hash -d h=/home/luca
hash -d ch=/home/luca/.cache
hash -d co=/home/luca/Documents/code
hash -d cf=/home/luca/.config
hash -d dt=/home/luca/.local/share
hash -d st=/home/luca/.local/state
hash -d sr=/home/luca/.local/src
hash -d it=/home/luca/.local/src/git
hash -d sc=/home/luca/.local/bin
@ -14,5 +14,16 @@ hash -d ms=/home/luca/Music
hash -d pc=/home/luca/Pictures
hash -d vd=/home/luca/Videos
hash -d dot=/home/luca/.local/share/stow/dots
hash -d bf=/home/luca/.local/share/bookmarks/files
hash -d bd=/home/luca/.local/share/bookmarks/directories
hash -d bf=/home/luca/.config/shell/bm-files
hash -d bd=/home/luca/.config/shell/bm-dirs
hash -d cfx=/home/luca/.config/x11/xresources
hash -d cfX=/home/luca/.config/x11/xprofile
hash -d cfb=/home/luca/.local/src/dwmblocks/config.h
hash -d cfk=/home/luca/.config/kitty/kitty.conf
hash -d cfK=/home/luca/.config/kitty/kittyfullscreen.conf
hash -d cfv=/home/luca/.config/lvim/config.lua
hash -d cfz=/home/luca/.config/zsh/.zshrc
hash -d cfa=/home/luca/.config/shell/aliasrc
hash -d cfp=/home/luca/.config/shell/profile
hash -d cfl=/home/luca/.config/lf/lfrc
hash -d cfL=/home/luca/.config/lf/preview

View file

@ -1,9 +1,9 @@
# vim: filetype=sh
alias h="cd /home/luca" \
ch="cd /home/luca/.cache" \
co="cd /home/luca/Documents/code" \
cf="cd /home/luca/.config" \
dt="cd /home/luca/.local/share" \
st="cd /home/luca/.local/state" \
sr="cd /home/luca/.local/src" \
it="cd /home/luca/.local/src/git" \
sc="cd /home/luca/.local/bin" \
@ -15,5 +15,16 @@ ms="cd /home/luca/Music" \
pc="cd /home/luca/Pictures" \
vd="cd /home/luca/Videos" \
dot="cd /home/luca/.local/share/stow/dots" \
bf="$EDITOR /home/luca/.local/share/bookmarks/files" \
bd="$EDITOR /home/luca/.local/share/bookmarks/directories" \
bf="$EDITOR /home/luca/.config/shell/bm-files" \
bd="$EDITOR /home/luca/.config/shell/bm-dirs" \
cfx="$EDITOR /home/luca/.config/x11/xresources" \
cfX="$EDITOR /home/luca/.config/x11/xprofile" \
cfb="$EDITOR /home/luca/.local/src/dwmblocks/config.h" \
cfk="$EDITOR /home/luca/.config/kitty/kitty.conf" \
cfK="$EDITOR /home/luca/.config/kitty/kittyfullscreen.conf" \
cfv="$EDITOR /home/luca/.config/lvim/config.lua" \
cfz="$EDITOR /home/luca/.config/zsh/.zshrc" \
cfa="$EDITOR /home/luca/.config/shell/aliasrc" \
cfp="$EDITOR /home/luca/.config/shell/profile" \
cfl="$EDITOR /home/luca/.config/lf/lfrc" \
cfL="$EDITOR /home/luca/.config/lf/preview" \