This commit is contained in:
陆柯 2022-04-01 14:55:54 +08:00
parent 4cd12adc62
commit 308e73a61b
9 changed files with 20 additions and 7 deletions

View File

@ -46,7 +46,7 @@ then
chmod 700 $HomePath/.ssh chmod 700 $HomePath/.ssh
if [ -e $HomePath/.ssh/authorized_keys ] if [ -e $HomePath/.ssh/authorized_keys ]
then then
echo "--- Removing $HomePath/.ssh/authorized_keys ..." echo "--- Renaming $HomePath/.ssh/authorized_keys to authorized_keys.backup ..."
mv $HomePath/.ssh/authorized_keys $HomePath/.ssh/authorized_keys.backup mv $HomePath/.ssh/authorized_keys $HomePath/.ssh/authorized_keys.backup
fi fi
echo "--- Linking $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..." echo "--- Linking $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..."

View File

@ -81,18 +81,29 @@ case "$TERM" in
esac esac
# nvm settings # nvm settings
export NVM_DIR="$HOME/.nvm" if [ -d $HOME/.nvm ]
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm then
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
fi
# let MacOS uses the same variable so that vscode-sshfs can use "$USERPROFILE/.ssh/id_rsa" uniformly.
export USERPROFILE=$HOME
# add sysconfig to path
if [ -d /Users/luk.lu/faronear/fon/sysconfig ]
then
export PATH=/Users/luk.lu/faronear/fon/sysconfig:$PATH
else if [ -d /faronear/fon/sysconfig ]
export PATH=/faronear/fon/sysconfig:$PATH
fi
if [ -f ~/.bashrc_custom ] if [ -f ~/.bashrc_custom ]
then then
source ~/.bashrc_custom source ~/.bashrc_custom
fi fi
# align for vscode-sshfs in MacOS and windows
export USERPROFILE=$HOME
################################################################################ ################################################################################
# End Of File: "~/.bashrc" # End Of File: "~/.bashrc"
################################################################################ ################################################################################

View File

@ -1,3 +1,5 @@
#!/bin/bash
apt update && apt install -y zip apt update && apt install -y zip
cd /faronear/ cd /faronear/
mkdir bin mkdir bin

Binary file not shown.

Binary file not shown.