u
This commit is contained in:
		
							parent
							
								
									4cd12adc62
								
							
						
					
					
						commit
						308e73a61b
					
				| @ -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 ..." | ||||||
|  | |||||||
| @ -81,18 +81,29 @@ case "$TERM" in | |||||||
| esac | esac | ||||||
| 
 | 
 | ||||||
| # nvm settings | # nvm settings | ||||||
|  | if [ -d $HOME/.nvm ] | ||||||
|  | then | ||||||
|   export NVM_DIR="$HOME/.nvm" |   export NVM_DIR="$HOME/.nvm" | ||||||
|   [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads 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 |   [ -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" | ||||||
| ################################################################################ | ################################################################################ | ||||||
|  | |||||||
| @ -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.
										
									
								
							
		Loading…
	
		Reference in New Issue
	
	Block a user