no tilde character in PATH

This commit is contained in:
Julian Scharrenbach 2026-04-23 10:40:31 +02:00
parent 8b856e1628
commit 32c116bdb4

20
.bashrc
View File

@ -5,26 +5,26 @@
umask 022 umask 022
# set PATH so it includes user's private bin if it exists # set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then if [ -d $HOME/bin ] ; then
PATH="~/bin:${PATH}" PATH="$HOME/bin:${PATH}"
export PATH export PATH
fi fi
if [ -d ~/.local/bin ] ; then if [ -d ~/.local/bin ] ; then
PATH="~/.local/bin:${PATH}" PATH="$HOME/.local/bin:${PATH}"
export PATH export PATH
fi fi
# do the same with MANPATH # do the same with MANPATH
if [ -d ~/man ]; then if [ -d $HOME/man ]; then
MANPATH=~/man:"${MANPATH}" MANPATH=$HOME/man:"${MANPATH}"
export MANPATH export MANPATH
fi fi
# some programs use a special .dot directory for not # some programs use a special .dot directory for not
# trashing the home directory with .dotfiles # trashing the home directory with .dotfiles
if [ -d ~/.dot ]; then if [ -d $HOME/.dot ]; then
DOT=~/.dot DOT=$HOME/.dot
export DOT export DOT
fi 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 # define your own aliases in ~/.bash_aliases
[ -f ~/.bash_aliases ] && source ~/.bash_aliases [ -f $HOME/.bash_aliases ] && source $HOME/.bash_aliases
# local bashrc # local bashrc
[ -f ~/.bashrc_local ] && source ~/.bashrc_local [ -f $HOME/.bashrc_local ] && source $HOME/.bashrc_local
# enable programmable completion features # enable programmable completion features
if [ -f /etc/bash_completion ]; then if [ -f /etc/bash_completion ]; then
@ -125,7 +125,7 @@ if [ -f /etc/bash_completion ]; then
fi fi
# host-specific bashrc # 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 # 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 # Define a variable containing a path and you will be able to cd into it regardless of the directory you're in