PDA

View Full Version : Where do I upload .bashrc in WH 4.0?



wildjokerdesign
04-25-2010, 10:21 AM
The answer is you don't. :) In WH 4.0 if you want to define user aliases and functions then you need to put them in a file called .profile located at /home/[username]/.

One example of this would be changing the default prompt in the shell environment which looks something like this -Bash 3.2-$. Put this code in the file /home/[username]/.profile:

PS1="[\u@\h \W]\$ "
The above code would make it looks something like this [username@host ~]$. username and host well be unique to your account.

Another thing you may want is to add to $PATH. You could do that with the following code:

export PATH="$PATH:/home/username/bin"

Our old 3.0 accounts had some aliases set up. Not all would work in the 4.0 environment but here are some that should.

alias du="du -h"
alias mv="mv -i"
alias cp="cp -i"
alias rm="rm -i"
alias l="ls -l"
alias vi="vim"
alias more="less"
alias psx="ps aux"