in /etc/profile there is statement of:
export PATH=...
that is the absolute way to reset a variable (in this case the environment variable PATH)
To make ur definition persistent, append "/dvorak/key/board" on the right side of the last export PATH=... statement on /etc/profile or append the line export "PATH=$PATH:/dv.." above without "" at the end of /etc/profile.
/etc/profile is the system wide profile, so every user login to ur system will source that file first on slackware. To make it guilty only for special user better create an ~/.bash_profile with that line as content.
Code:
cat <<EOF >> ~/.bash_profile
export PATH=$PATH:/dvorak/key/board
EOF
will do that. Source it whenever u made change to it to make it take effect. Check the content of ur PATH by "env | grep PATH"
Source it several times then check it again. If u don't want to have "/dvorak/key/board" appears redudant in ur $PATH then edit ~/.bash_profile to read like:
Code:
echo $PATH|grep "/dvorak/key/board" 1>dev/null 2>/dev/null
[ $? = 0 ] && export PATH=$PATH:/dvorak/key/board