Article 6QXN0 .bashrc doesn't work

.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?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments