Re: Kde и aliases
В мане нашел
When bash is started non-interactively, to run a shell script, for
example, it looks for the variable BASH_ENV in
the environment, expands its value if it appears there, and uses
the expanded value as the name of a file to read
and execute. Bash behaves as if the following command were executed:
if [ -n "$BASH_ENV" ]; then . "$BASH_ENV"; fi
but the value of the PATH variable is not used to search for the
file name.
Сделал следующее: создал у себя файлик testbash с содержимым
#!/bin/bash
source /home/sir_j/.bash_profile
в /etc/environment
добавил
export BASH_ENV='/home/sir_j/testbash'
рестартанул kde
выполняю Win+R --> echo $BASH_ENV в терминале значение отображается
echo <любая переменная из /home/sir_j/.bash_profile> тоже есть
но алиасы все равно не работают, т. е. даже по команде alias (Win + R
--> alias выполнять в терминале) ничего нет :(
Reply to: