Currently, I have the zathura program installed in my system.
What I did is writing a bash scripts redefine and program to have the right output. I also updated the $PATH for the scripts. However. when I run zathura command on the terminal it behave the same as the original zathura program, which is openning up a pdf file and stopping me from interacting with the terminal. I want zathura command to open a pdf file without taking me away from the terminal.
This is the content of the script:
#!/bin/bash
command zathura "$1" &> /dev/null &
the input will be pdf file. For example, zathura quickstart.pdf should open a pdf file and keep me interact with the terminal sitll.
Additionally, These are the output of which command echo $PATH command :
which zathura
/home/anpham/scripts/zathura
echo $PATH
/home/anpham/scripts:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
echodebug trig. I typed in thehash -rcommand. I also get in in the hash table. But now the script doesn't open the pdf file. – vincent pham Nov 04 '19 at 23:04