.bashrc doesn't work
by Pendeb from LinuxQuestions.org on (#6QXN0)
I put an alias in .bashrc to make it permanent
.bashrc
alias gksu='pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY'
and when I tried to run a shell script called wizmode.sh:
wizmode.sh
#!/bin/bash
gksu /usr/games/nethack-qt
I got nothing when I ran the script by clicking on it from the file manager, and got
james@james-OptiPlex-780:~$ sh wizmode.sh
wizmode.sh: 2: gksu: not found
When I ran it from a terminal. What am I doing wrong?
.bashrc
alias gksu='pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY'
and when I tried to run a shell script called wizmode.sh:
wizmode.sh
#!/bin/bash
gksu /usr/games/nethack-qt
I got nothing when I ran the script by clicking on it from the file manager, and got
james@james-OptiPlex-780:~$ sh wizmode.sh
wizmode.sh: 2: gksu: not found
When I ran it from a terminal. What am I doing wrong?