mirror of
https://github.com/wting/autojump
synced 2024-10-27 20:34:07 +00:00
Merge 2832519a99
into df67df476b
This commit is contained in:
commit
310e25bf07
@ -23,7 +23,12 @@ function show_help {
|
||||
prefix=/usr
|
||||
|
||||
user=${SUDO_USER:-${USER}}
|
||||
OS=`uname`
|
||||
if [ $OS == 'Darwin' ]; then
|
||||
user_home=$(dscl . -search /Users UniqueID ${user} | cut -d: -f6)
|
||||
else
|
||||
user_home=$(getent passwd ${user} | cut -d: -f6)
|
||||
fi
|
||||
bashrc_file=${user_home}/.bashrc
|
||||
|
||||
# Command line parsing
|
||||
|
Loading…
Reference in New Issue
Block a user