Really a simple question for you:
i have the following configuration files:
~/.bashrc
Code:
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# enable programmable completion features
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
and:
/etc/bashrc
Code:
# /etc/bashrc
# System wide functions and aliases
# Environment stuff goes in /etc/profile
# by default, we want this to get set.
# Even for non-interactive, non-login shells.
if [ "`id -gn`" = "`id -un`" -a `id -u` -gt 99 ]; then
umask 002
else
umask 022
fi
# are we an interactive shell?
if [ "$PS1" ]; then
case $TERM in
xterm*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
;;
*)
;;
esac
[ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "
if [ -z "$loginsh" ]; then # We're not a login shell
for i in /etc/profile.d/*.sh; do
if [ -x $i ]; then
. $i
fi
done
fi
fi
unset loginsh
so installed firefox and the new executable is placed in ~/firefox-installer.
My PATH is :
Code:
/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/usr/games:/home/user/bin
now i'd like to get the executable running by invoking $firefox at the shell prompt for non-login shell.
I tried
Code:
$PATH=$PATH:~/firefox-installer
$export PATH
but it works only for that shell i am in and not for newly invoked ones.
How to solve this?
Thank you!