summaryrefslogtreecommitdiff
path: root/home
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-11-04 20:05:04 -0700
committerxyz <gky44px1999@gmail.com>2021-11-04 20:05:04 -0700
commit45933c87d522871c283012410d678f736fb2d6e4 (patch)
treef68beac6c1510b8ed73bdb7a868e0c9da6fd07b7 /home
parent9a2a6373e6278697d91ce33e994c997c8167cf4d (diff)
better man, better vinfo, misc
Diffstat (limited to 'home')
-rwxr-xr-xhome/xyz/.local/bin/mpva2
-rwxr-xr-xhome/xyz/.local/bin/upd2
-rwxr-xr-xhome/xyz/.local/bin/vinfo2
-rw-r--r--home/xyz/.profile3
4 files changed, 5 insertions, 4 deletions
diff --git a/home/xyz/.local/bin/mpva b/home/xyz/.local/bin/mpva
index 7224cf46..81ff397e 100755
--- a/home/xyz/.local/bin/mpva
+++ b/home/xyz/.local/bin/mpva
@@ -3,7 +3,7 @@
if [ $# -eq 0 ]; then
# fzf has --read0, maybe useful
find "$XDG_MUSIC_DIR" | fzf -m --print0 | xargs -0 mpv --af= --shuffle --loop-playlist=inf --video=no
-elif [ $# -eq 1 ]; then
+elif [ $# -eq 1 ] && ! [ -d "$1" ]; then
# use --loop-file for single file, better performance maybe
mpv --af= --loop-file=inf --video=no "$1"
else
diff --git a/home/xyz/.local/bin/upd b/home/xyz/.local/bin/upd
index ef6061ee..1c86ca24 100755
--- a/home/xyz/.local/bin/upd
+++ b/home/xyz/.local/bin/upd
@@ -46,7 +46,7 @@ kg () {
misc () {
cfg -c submodule foreach git pull
- nvim +PlugUpgrade +PlugClean! +PlugUpdate +qa
+ "$EDITOR" +PlugUpgrade +PlugClean! +PlugUpdate +qa
tldr --update
sudo hardcode-fixer
userjs
diff --git a/home/xyz/.local/bin/vinfo b/home/xyz/.local/bin/vinfo
index 93f6be18..190de192 100755
--- a/home/xyz/.local/bin/vinfo
+++ b/home/xyz/.local/bin/vinfo
@@ -1,4 +1,4 @@
#!/bin/sh
# steal from https://github.com/HiPhish/info.vim
-"$EDITOR" -R -M -c "Info $1 $2" +only
+"$EDITOR" -RM +"Info $1 $2" +only
diff --git a/home/xyz/.profile b/home/xyz/.profile
index b3f0b573..bafc9b2e 100644
--- a/home/xyz/.profile
+++ b/home/xyz/.profile
@@ -35,7 +35,8 @@ export PAGER=less
# steal from sdcv arch wiki
export LESS='-FRX'
export SDCV_PAGER="$PAGER"
-export MANPAGER='nvim +Man!'
+export MANPAGER='nvim -M +Man!'
+export MANSECT='1p:1:n:l:8:3p:3:0p:0:2:5:4:9:6:7'
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
export INPUTRC="$XDG_CONFIG_HOME/readline/inputrc"