19 lines
620 B
Bash
19 lines
620 B
Bash
|
|
#-------------------------------------------------------------------------------
|
||
|
|
# Example 5 for Bash Tips show 21: a few things exported in my .bashrc
|
||
|
|
#-------------------------------------------------------------------------------
|
||
|
|
#
|
||
|
|
# The PATH variable gets my local ~/bin directory added to it
|
||
|
|
#
|
||
|
|
export PATH="${PATH}:$HOME/bin"
|
||
|
|
#
|
||
|
|
# The above is the older way of doing this. It is possible to write the
|
||
|
|
# following using '+=' to concatenate a string onto a variable:
|
||
|
|
# export PATH+=":$HOME/bin"
|
||
|
|
|
||
|
|
#
|
||
|
|
# Some tools need a default editor. The only one for me is Vim
|
||
|
|
#
|
||
|
|
export EDITOR=/usr/bin/vim
|
||
|
|
export VISUAL=/usr/bin/vim
|
||
|
|
|