diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2022-03-19 15:12:30 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2022-03-19 15:12:30 +0100 |
commit | 947295c5efefa06962f150ad223307a22613d056 (patch) | |
tree | 9dbc142956de82179d6cf039e9d41b0d41245e4b | |
parent | Added cool command (diff) | |
download | dotfiles-bsd-947295c5efefa06962f150ad223307a22613d056.tar.gz dotfiles-bsd-947295c5efefa06962f150ad223307a22613d056.tar.bz2 dotfiles-bsd-947295c5efefa06962f150ad223307a22613d056.tar.xz dotfiles-bsd-947295c5efefa06962f150ad223307a22613d056.tar.zst dotfiles-bsd-947295c5efefa06962f150ad223307a22613d056.zip |
Added scripts to mount iso files
-rw-r--r-- | .config/lf/lfrc | 3 | ||||
-rwxr-xr-x | .local/bin/isomnt | 8 | ||||
-rwxr-xr-x | .local/bin/isoumnt | 5 |
3 files changed, 15 insertions, 1 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc index f915d8c..e0fdfcb 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -44,6 +44,7 @@ cmd showallpics $exa *.png *.jpg *.jpeg *.gif *.webp *.tif *.ico 2>/dev/null | s map gr cd / map gm cd ~/hdd +map gd cd ~/dvd map gc cd ~/.config map gb cd ~/.local/bin map gs cd ~/.local/share @@ -62,11 +63,11 @@ map <c-s> $$SHELL map <c-n> push :mkdir<space> map <f-7> push :mkdir<space> map <c-r> reload +map x !$f map X $$f map o &mimeopen $f map O $mimeopen --ask $f map V showallpics -map x showallpics map @ !clear; du -sh . map A rename # at the very end diff --git a/.local/bin/isomnt b/.local/bin/isomnt new file mode 100755 index 0000000..18a86fd --- /dev/null +++ b/.local/bin/isomnt @@ -0,0 +1,8 @@ +#!/usr/local/bin/dash -e + +echo qwe + +[ -z "$1" ] && exit 1 +doas mdconfig -a -t vnode -f "$1" -u 1 +mkdir -p "$HOME"/dvd +mount -t cd9660 /dev/md1 "$HOME"/dvd diff --git a/.local/bin/isoumnt b/.local/bin/isoumnt new file mode 100755 index 0000000..742db40 --- /dev/null +++ b/.local/bin/isoumnt @@ -0,0 +1,5 @@ +#!/usr/local/bin/dash -e + +umount /dev/md1 +rmdir "$HOME"/dvd +doas mdconfig -d -u 1 |