Added/enhanced bash with cmder.sh/user-cmder.sh, organized tasks menu
added personal files to .gitignore so they never get uploaded to the repo and added support for msys2 bash in the new git for windows
added autocreate of config/user-cmder.sh if iot does not exist and added it to the .gitignore
Added tasks: cmd::Cmder, cmd::Cmder as Admin, bash::bash, bash::bash as Admin, bash::mintty, bash::mintty as admin, powershell::powershell, powershell::powershell as Admin. Set default task to cmd::Cmder. Cot rid of init.bat running before /bin/bash, fixes double exit requirement
Added running git for windows post-install.bat on first cmder launch
fixed file/path not found errors when launching powershell as admin
fixed file/path not found errors when launching bash/mintty as admin
fixed PATH in vendor/cmder.sh
Added sourcing ~/.bashrc if it exists.
changed .gitignore to ignore anything with path of config/user-*
removed my personal files from .gitignore, left in config/user-*
Make sure $CMDER_ROOT does not have a trailing '/'
%CMDER_ROOT% does not have trailing '\'. allow user to specify a conemu.xml on the command line
Removed '\' from %CMDER_ROOT%
2015-11-09 11:25:42 +08:00
|
|
|
# DO NOT EDIT THIS FILE IT WILL BE OVERWRITTEN ON UPDATE
|
|
|
|
#
|
2015-11-25 07:23:04 +08:00
|
|
|
# Add portable user customizations ${CMDER_ROOT}/config/user-profile.sh,
|
Added/enhanced bash with cmder.sh/user-cmder.sh, organized tasks menu
added personal files to .gitignore so they never get uploaded to the repo and added support for msys2 bash in the new git for windows
added autocreate of config/user-cmder.sh if iot does not exist and added it to the .gitignore
Added tasks: cmd::Cmder, cmd::Cmder as Admin, bash::bash, bash::bash as Admin, bash::mintty, bash::mintty as admin, powershell::powershell, powershell::powershell as Admin. Set default task to cmd::Cmder. Cot rid of init.bat running before /bin/bash, fixes double exit requirement
Added running git for windows post-install.bat on first cmder launch
fixed file/path not found errors when launching powershell as admin
fixed file/path not found errors when launching bash/mintty as admin
fixed PATH in vendor/cmder.sh
Added sourcing ~/.bashrc if it exists.
changed .gitignore to ignore anything with path of config/user-*
removed my personal files from .gitignore, left in config/user-*
Make sure $CMDER_ROOT does not have a trailing '/'
%CMDER_ROOT% does not have trailing '\'. allow user to specify a conemu.xml on the command line
Removed '\' from %CMDER_ROOT%
2015-11-09 11:25:42 +08:00
|
|
|
# these customizations will follow Cmder if $CMDER_ROOT is copied
|
|
|
|
# to another machine.
|
|
|
|
#
|
|
|
|
# Add system specific users customizations to $HOME/.bashrc, these
|
|
|
|
# customizations will not follow Cmder to another machine.
|
|
|
|
|
|
|
|
# We do this for bash as admin sessions since $CMDER_ROOT is not being set
|
|
|
|
if [ "$CMDER_ROOT" == "" ] ; then
|
|
|
|
case "$ConEmuDir" in *\\*) CMDER_ROOT=$( cd "$(cygpath -u "$ConEmuDir")/../.." ; pwd );; esac
|
|
|
|
else
|
|
|
|
case "$CMDER_ROOT" in *\\*) CMDER_ROOT="$(cygpath -u "$CMDER_ROOT")";; esac
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Remove any trailing '/'
|
|
|
|
CMDER_ROOT=$(echo $CMDER_ROOT | sed 's:/*$::')
|
|
|
|
|
|
|
|
export CMDER_ROOT
|
|
|
|
|
|
|
|
if [ -d "/c/Program Files/Git" ] ; then
|
|
|
|
GIT_INSTALL_ROOT="/c/Program Files/Git"
|
|
|
|
elif [ -d "/c/Program Files(x86)/Git" ] ; then
|
|
|
|
GIT_INSTALL_ROOT="/c/Program Files(x86)/Git"
|
|
|
|
elif [ -d "${CMDER_ROOT}/vendor/git-for-windows" ] ; then
|
|
|
|
GIT_INSTALL_ROOT=${CMDER_ROOT}/vendor/git-for-windows
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [[ ! "$PATH" =~ "${GIT_INSTALL_ROOT}/bin:" ]] ; then
|
|
|
|
PATH=${GIT_INSTALL_ROOT}/bin:$PATH
|
|
|
|
fi
|
|
|
|
|
|
|
|
PATH=${CMDER_ROOT}/bin:$PATH:${CMDER_ROOT}
|
|
|
|
|
|
|
|
export PATH
|
|
|
|
|
2015-11-25 07:23:04 +08:00
|
|
|
if [ -f ${CMDER_ROOT}/config/user-profile.sh ] ; then
|
|
|
|
. ${CMDER_ROOT}/config/user-profile.sh
|
Added/enhanced bash with cmder.sh/user-cmder.sh, organized tasks menu
added personal files to .gitignore so they never get uploaded to the repo and added support for msys2 bash in the new git for windows
added autocreate of config/user-cmder.sh if iot does not exist and added it to the .gitignore
Added tasks: cmd::Cmder, cmd::Cmder as Admin, bash::bash, bash::bash as Admin, bash::mintty, bash::mintty as admin, powershell::powershell, powershell::powershell as Admin. Set default task to cmd::Cmder. Cot rid of init.bat running before /bin/bash, fixes double exit requirement
Added running git for windows post-install.bat on first cmder launch
fixed file/path not found errors when launching powershell as admin
fixed file/path not found errors when launching bash/mintty as admin
fixed PATH in vendor/cmder.sh
Added sourcing ~/.bashrc if it exists.
changed .gitignore to ignore anything with path of config/user-*
removed my personal files from .gitignore, left in config/user-*
Make sure $CMDER_ROOT does not have a trailing '/'
%CMDER_ROOT% does not have trailing '\'. allow user to specify a conemu.xml on the command line
Removed '\' from %CMDER_ROOT%
2015-11-09 11:25:42 +08:00
|
|
|
else
|
2015-11-25 07:23:04 +08:00
|
|
|
echo Creating user startup file: "${CMDER_ROOT}/config/user-profile.sh"
|
|
|
|
cat <<-eof >"${CMDER_ROOT}/config/user-profile.sh"
|
Added/enhanced bash with cmder.sh/user-cmder.sh, organized tasks menu
added personal files to .gitignore so they never get uploaded to the repo and added support for msys2 bash in the new git for windows
added autocreate of config/user-cmder.sh if iot does not exist and added it to the .gitignore
Added tasks: cmd::Cmder, cmd::Cmder as Admin, bash::bash, bash::bash as Admin, bash::mintty, bash::mintty as admin, powershell::powershell, powershell::powershell as Admin. Set default task to cmd::Cmder. Cot rid of init.bat running before /bin/bash, fixes double exit requirement
Added running git for windows post-install.bat on first cmder launch
fixed file/path not found errors when launching powershell as admin
fixed file/path not found errors when launching bash/mintty as admin
fixed PATH in vendor/cmder.sh
Added sourcing ~/.bashrc if it exists.
changed .gitignore to ignore anything with path of config/user-*
removed my personal files from .gitignore, left in config/user-*
Make sure $CMDER_ROOT does not have a trailing '/'
%CMDER_ROOT% does not have trailing '\'. allow user to specify a conemu.xml on the command line
Removed '\' from %CMDER_ROOT%
2015-11-09 11:25:42 +08:00
|
|
|
# use this file to run your own startup commands for msys2 bash'
|
|
|
|
|
|
|
|
# To add a new vendor to the path, do something like:
|
|
|
|
# export PATH=\${CMDER_ROOT}/vendor/whatever:\${PATH}
|
|
|
|
eof
|
|
|
|
fi
|
|
|
|
|
|
|
|
# Source the users .bashrc file if it exists
|
|
|
|
if [ -f "${HOME}/.bashrc" ] ; then
|
|
|
|
. "${HOME}/.bashrc"
|
|
|
|
fi
|