1
0
Fork 0

fix bookmarks

This commit is contained in:
Luca Bilke 2023-11-24 17:05:48 +01:00
parent 9c21d09fb8
commit f0e971b372
5 changed files with 9 additions and 10 deletions

View file

@ -1,3 +1,3 @@
# keys filename # keys filename
bf $XDG_DATA_HOME/bookmarks/files bf $XDG_CONFIG_HOME/bookmarks/files
bd $XDG_DATA_HOME/bookmarks/directories bd $XDG_CONFIG_HOME/bookmarks/directories

View file

@ -31,8 +31,7 @@ cmd trash %{{
cmd lazygit ${{ cmd lazygit ${{
clear clear
if [ ! -e "$PWD/.git" ]; then if [ ! -e "$PWD/.git" ]; then
echo "Not in a git repository. Create a new git repository? (y/n): " [ $(echo "Yes\nNo" | fzf --header="Not in a git repository. Create a new git repository? (y/n): ") = "Yes" ] && git init && lazygit -p $PWD
[ $(echo "Yes\nNo" | fzf) = "Yes" ] && git init && lazygit -p $PWD
else else
lazygit -p $PWD lazygit -p $PWD
fi fi

View file

@ -14,5 +14,5 @@ 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"
map gdot cd "/home/luca/.local/share/stow/dots" map gdot cd "/home/luca/.local/share/stow/dots"
map Ebf $$EDITOR "/home/luca/.local/share/bookmarks/files" map Ebf $$EDITOR "/home/luca/.config/bookmarks/files"
map Ebd $$EDITOR "/home/luca/.local/share/bookmarks/directories" map Ebd $$EDITOR "/home/luca/.config/bookmarks/directories"

View file

@ -14,5 +14,5 @@ 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
hash -d dot=/home/luca/.local/share/stow/dots hash -d dot=/home/luca/.local/share/stow/dots
hash -d bf=/home/luca/.local/share/bookmarks/files hash -d bf=/home/luca/.config/bookmarks/files
hash -d bd=/home/luca/.local/share/bookmarks/directories hash -d bd=/home/luca/.config/bookmarks/directories

View file

@ -15,5 +15,5 @@ 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" \
dot="cd /home/luca/.local/share/stow/dots" \ dot="cd /home/luca/.local/share/stow/dots" \
bf="$EDITOR /home/luca/.local/share/bookmarks/files" \ bf="$EDITOR /home/luca/.config/bookmarks/files" \
bd="$EDITOR /home/luca/.local/share/bookmarks/directories" \ bd="$EDITOR /home/luca/.config/bookmarks/directories" \