no tilde character in PATH
This commit is contained in:
parent
8b856e1628
commit
32c116bdb4
20
.bashrc
20
.bashrc
|
|
@ -5,26 +5,26 @@
|
|||
umask 022
|
||||
|
||||
# set PATH so it includes user's private bin if it exists
|
||||
if [ -d ~/bin ] ; then
|
||||
PATH="~/bin:${PATH}"
|
||||
if [ -d $HOME/bin ] ; then
|
||||
PATH="$HOME/bin:${PATH}"
|
||||
export PATH
|
||||
fi
|
||||
|
||||
if [ -d ~/.local/bin ] ; then
|
||||
PATH="~/.local/bin:${PATH}"
|
||||
PATH="$HOME/.local/bin:${PATH}"
|
||||
export PATH
|
||||
fi
|
||||
|
||||
# do the same with MANPATH
|
||||
if [ -d ~/man ]; then
|
||||
MANPATH=~/man:"${MANPATH}"
|
||||
if [ -d $HOME/man ]; then
|
||||
MANPATH=$HOME/man:"${MANPATH}"
|
||||
export MANPATH
|
||||
fi
|
||||
|
||||
# some programs use a special .dot directory for not
|
||||
# trashing the home directory with .dotfiles
|
||||
if [ -d ~/.dot ]; then
|
||||
DOT=~/.dot
|
||||
if [ -d $HOME/.dot ]; then
|
||||
DOT=$HOME/.dot
|
||||
export DOT
|
||||
fi
|
||||
|
||||
|
|
@ -114,10 +114,10 @@ unset F_RESET U_USER U_PWD R_USER R_PWD C_HOST C_GIT C_CHAR
|
|||
|
||||
|
||||
# define your own aliases in ~/.bash_aliases
|
||||
[ -f ~/.bash_aliases ] && source ~/.bash_aliases
|
||||
[ -f $HOME/.bash_aliases ] && source $HOME/.bash_aliases
|
||||
|
||||
# local bashrc
|
||||
[ -f ~/.bashrc_local ] && source ~/.bashrc_local
|
||||
[ -f $HOME/.bashrc_local ] && source $HOME/.bashrc_local
|
||||
|
||||
# enable programmable completion features
|
||||
if [ -f /etc/bash_completion ]; then
|
||||
|
|
@ -125,7 +125,7 @@ if [ -f /etc/bash_completion ]; then
|
|||
fi
|
||||
|
||||
# host-specific bashrc
|
||||
[ -f ~/.bashrc_$HOSTNAME ] && source ~/.bashrc_$HOSTNAME
|
||||
[ -f $HOME/.bashrc_$HOSTNAME ] && source $HOME/.bashrc_$HOSTNAME
|
||||
|
||||
# This allows you to bookmark your favorite places across the file system
|
||||
# Define a variable containing a path and you will be able to cd into it regardless of the directory you're in
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user