Install VistA p.4
PageFour Created Wednesday 22 October 2008
8. You need to set up your environment. Nancy has included some small shell scripts for you and you will need to edit them to fit your situation. Looking first at env2. (She calls it env2 to distinguish it from the env files found in the SemiVivA downloads, so there will be no confusion). Here is the contents of the env2 included with this group of files. It includes a number of aliases for commands to make things easier. The line you may need to edit to match your installation is in bold type there.
9. Open the file /home/vista/.bashrc and add a line so env2 will run on login. The line is a period followed by a space and then home/vista/EHR/env2
.<sp>/home/vista/EHR/env2
- Put it near the end of the file so you can find it again. Here is the end of .bashrc :
//snip
# some more ls aliases
#alias ll='ls -l'
#alias la='ls -A'
#alias l='ls -CF'
. /home/vista/EHR/env2 <======= here is where the new line goes
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion [note the space after the .]
fi
- To accomplish this in vi, carefully do this:
vi .bashrc
- [scroll down to the location indicated above, placing the cursor on the blank line]
i [places you in "insert" mode]
[enter]
. /home/vista/EHR/env2 [type or paste the line into the file; note the space after the .]
[enter]
[esc] [exits "insert" mode]
:wq [puts you in "command" mode, writes the file, and quits]
The aliases in env2 are helpful because if you start a new shell and log in as the user vista, you will be able to just type gtm or GTM and roll and scroll VistA using GT.M will start right up.