Marius Schwarz 4 роки тому
батько
коміт
f0064002ca
1 змінених файлів з 5 додано та 5 видалено
  1. 5 5
      cheat.sh

+ 5 - 5
cheat.sh

@@ -21,10 +21,10 @@ function usage {
 
 # select the files using a dmenu/rofi interface and display em with md-viewer
 function interactive {
-    cd $cheatsheets
-    cs=`fd .md$ . | dmenu -i -l 20`
-    nohup md-viewer $cs >&2 2>/dev/null &
-
+    cs=`fd .md$ $cheatsheets | dmenu -i -l 20`
+    echo $cs > /tmp/lul
+    #nohup md-viewer $cs >&2 2>/dev/null &
+    $HOME/.scripts/tools/md-viewer "$cs"
 }
 
 # Set the path to the cheatncheck repo here
@@ -44,7 +44,7 @@ cd $cheatsheets
 if [ $# -eq 0 ] ; then
     #vim -R -c "Goyo 90%" "$(fzf)"
     chosen_cheatsheet=`fzf`
-    nohup md-viewer "$chosen_cheatsheet" >&2 2>/dev/null &
+    md-viewer "$chosen_cheatsheet"
     exit 1
 fi