Merge branch 'elliotslab-lf-patch'
This commit is contained in:
commit
d3b1e5371a
3 changed files with 6 additions and 6 deletions
|
@ -60,9 +60,8 @@ cmd copyto ${{
|
||||||
notify-send "📋 File(s) copied." "File(s) copies to $dest."
|
notify-send "📋 File(s) copied." "File(s) copies to $dest."
|
||||||
}}
|
}}
|
||||||
|
|
||||||
cmd bulkrename ${{
|
cmd setbg "$1"
|
||||||
vidir
|
cmd bulkrename $vidir
|
||||||
}}
|
|
||||||
|
|
||||||
# Bindings
|
# Bindings
|
||||||
map <c-f> $lf -remote "send $id select '$(fzf)'"
|
map <c-f> $lf -remote "send $id select '$(fzf)'"
|
||||||
|
@ -85,7 +84,8 @@ map c push A<c-u> # new rename
|
||||||
map I push A<c-a> # at the very beginning
|
map I push A<c-a> # at the very beginning
|
||||||
map i push A<a-b><a-b><a-f> # before extention
|
map i push A<a-b><a-b><a-f> # before extention
|
||||||
map a push A<a-b> # after extention
|
map a push A<a-b> # after extention
|
||||||
map b bulkrename
|
map B bulkrename
|
||||||
|
map b $setbg $f
|
||||||
|
|
||||||
map <c-e> down
|
map <c-e> down
|
||||||
map <c-y> up
|
map <c-y> up
|
||||||
|
|
|
@ -11,7 +11,7 @@ share=$(smbclient -L "$srvname" -N | grep Disk | awk '{print $1}' | dmenu -i -p
|
||||||
share2mnt=//"$srvname".local/"$share"
|
share2mnt=//"$srvname".local/"$share"
|
||||||
|
|
||||||
sharemount() {
|
sharemount() {
|
||||||
mounted=$(mount -v | grep "$share2mnt") || ([ ! -d /mnt/"$share" ] && mkdir /mnt/"$share")
|
mounted=$(mount -v | grep "$share2mnt") || ([ ! -d /mnt/"$share" ] && sudo mkdir /mnt/"$share")
|
||||||
[ -z "$mounted" ] && sudo mount -t cifs "$share2mnt" -o user=nobody,password="" /mnt/"$share" && notify-send "Netshare $share mounted" && exit 0
|
[ -z "$mounted" ] && sudo mount -t cifs "$share2mnt" -o user=nobody,password="" /mnt/"$share" && notify-send "Netshare $share mounted" && exit 0
|
||||||
notify-send "Netshare $share already mounted"; exit 1
|
notify-send "Netshare $share already mounted"; exit 1
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
# to clean up.
|
# to clean up.
|
||||||
|
|
||||||
# Adds `~/.local/bin` to $PATH
|
# Adds `~/.local/bin` to $PATH
|
||||||
export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | paste -sd ':')"
|
export PATH="$PATH:$(du "$HOME/.local/bin" | cut -f2 | paste -sd ':')"
|
||||||
|
|
||||||
# Default programs:
|
# Default programs:
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
|
|
Loading…
Reference in a new issue