set home, if XDG_RUNTIME_DIR not defined
This commit is contained in:
parent
e0f42bb5cf
commit
411e5a2edc
1 changed files with 4 additions and 2 deletions
|
@ -332,6 +332,8 @@ sshmyshellconfig() {
|
||||||
echo
|
echo
|
||||||
loginfo cleanup from old config
|
loginfo cleanup from old config
|
||||||
rm -rf ~/server-config && echo rm -rf ~/server-config
|
rm -rf ~/server-config && echo rm -rf ~/server-config
|
||||||
|
loginfo git clone
|
||||||
|
git clone --recurse-submodules $MYSHELLCONFIG_GIT_REMOTE \${HOME}/${MYSHELLCONFIG_SUBPATH}
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
EXIT
|
EXIT
|
||||||
|
@ -385,8 +387,8 @@ EOF
|
||||||
if [ $# -ge 1 ]; then
|
if [ $# -ge 1 ]; then
|
||||||
if [ -e "${TMPBASHCONFIG}" ] ; then
|
if [ -e "${TMPBASHCONFIG}" ] ; then
|
||||||
local RCMD="/bin/bash --noprofile --norc -c "
|
local RCMD="/bin/bash --noprofile --norc -c "
|
||||||
local REMOTETMPBASHCONFIG=$(ssh -T ${SSH_OPTS} $@ "mktemp -p \${XDG_RUNTIME_DIR} -t bashrc.XXXXXXXX --suffix=.conf"| tr -d '[:space:]' )
|
local REMOTETMPBASHCONFIG=$(ssh -T ${SSH_OPTS} $@ "mktemp -p \${XDG_RUNTIME_DIR-~} -t bashrc.XXXXXXXX --suffix=.conf"| tr -d '[:space:]' )
|
||||||
local REMOTETMPVIMCONFIG=$(ssh -T ${SSH_OPTS} $@ "mktemp -p \${XDG_RUNTIME_DIR} -t vimrc.XXXXXXXX --suffix=.conf"| tr -d '[:space:]')
|
local REMOTETMPVIMCONFIG=$(ssh -T ${SSH_OPTS} $@ "mktemp -p \${XDG_RUNTIME_DIR-~} -t vimrc.XXXXXXXX --suffix=.conf"| tr -d '[:space:]')
|
||||||
|
|
||||||
# Add additional aliases to bashrc for remote-machine
|
# Add additional aliases to bashrc for remote-machine
|
||||||
cat << EOF >> "${TMPBASHCONFIG}"
|
cat << EOF >> "${TMPBASHCONFIG}"
|
||||||
|
|
Loading…
Reference in a new issue