From 32c116bdb4bb1de13f9d7b0817d6de93dbbcb41b Mon Sep 17 00:00:00 2001 From: Julian Scharrenbach Date: Thu, 23 Apr 2026 10:40:31 +0200 Subject: [PATCH] no tilde character in PATH --- .bashrc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.bashrc b/.bashrc index ef247f1..fd48a9f 100644 --- a/.bashrc +++ b/.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