To do certain tasks, I need elevated privileges, and this is where cliexec=myscript cheatcode, comes around. But every time I open a terminal, it tries to execute myscript
For example @work where memory is limited, I'm removing the foreign locales:
Code: Select all
# REMOVE FOREIGN LOCALES
GLOBIGNORE=es:es_ES*:en:en_US*:locale.alias
cd /usr/share/locale
rm -r -- *
cd -
unset GLOBIGNORE
#PATCH DoubleCmd
if [[ $(lsblk -rno label | grep -E "APORTEUS|NEMESIS") ]] ; then
sed -i 's/Bar1>True/Bar1>False/g' /home/guest/.config/doublecmd/doublecmd.xml
fi
...
Code: Select all
[[ -f /mnt/sda1/tmp/myfiledisk ]] && mkdir -p /mnt/myfiledisk && mount /mnt/sda1/tmp/myfiledisk /mnt/myfiledisk
Any help?
Thanks in advance.
Cheers!