u
This commit is contained in:
parent
4cd12adc62
commit
308e73a61b
@ -46,7 +46,7 @@ then
|
||||
chmod 700 $HomePath/.ssh
|
||||
if [ -e $HomePath/.ssh/authorized_keys ]
|
||||
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
|
||||
fi
|
||||
echo "--- Linking $SourcePath/authorized_keys to $HomePath/.ssh/authorized_keys ..."
|
||||
|
@ -81,18 +81,29 @@ case "$TERM" in
|
||||
esac
|
||||
|
||||
# nvm settings
|
||||
if [ -d $HOME/.nvm ]
|
||||
then
|
||||
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 ]
|
||||
then
|
||||
source ~/.bashrc_custom
|
||||
fi
|
||||
|
||||
# align for vscode-sshfs in MacOS and windows
|
||||
export USERPROFILE=$HOME
|
||||
|
||||
################################################################################
|
||||
# End Of File: "~/.bashrc"
|
||||
################################################################################
|
||||
|
@ -1,3 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
apt update && apt install -y zip
|
||||
cd /faronear/
|
||||
mkdir bin
|
||||
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue
Block a user