Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mySetting
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
zhangxuantong@ihep.ac.cn
mySetting
Commits
cec1edfc
Commit
cec1edfc
authored
6 months ago
by
root
Browse files
Options
Downloads
Patches
Plain Diff
update bootstrap and bashrc_git
parent
685663ac
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
bootstrap.sh
+1
-1
1 addition, 1 deletion
bootstrap.sh
src/bashrc_git.sh
+2
-2
2 additions, 2 deletions
src/bashrc_git.sh
src/config_wsl
+5
-9
5 additions, 9 deletions
src/config_wsl
with
8 additions
and
12 deletions
bootstrap.sh
+
1
−
1
View file @
cec1edfc
...
...
@@ -19,7 +19,7 @@ function setBashrc(){
local
LOCALTYPE
=
$1
echo
-e
"
\e
[32mConfiguring bashrc...
\e
[0m"
yes
|
cp
-f
$PWD
/src/bashrc_base.sh ~/.env/bashrc_base.sh &>/dev/null
yes
|
cp
-f
$PWD
/src/bashrc_
$LOCALTYPE
.sh ~/.env/bashrc_
$LOCALTYPE
.sh
&>/dev/null
sed
"s/PROXYIPSWAP/
$PROXYIP
/g; s/PROXYPORTSWAP/
$PROXYPORT
/g"
$PWD
/src/bashrc_
$LOCALTYPE
.sh
>
~/.env/bashrc_
$LOCALTYPE
.sh
if
!
grep
"source ~/.env/bashrc_base.sh"
~/.bashrc &>/dev/null
;
then
echo
-e
"source ~/.env/bashrc_base.sh"
>>
~/.bashrc
;
fi
if
!
grep
"source ~/.env/bashrc_
$LOCALTYPE
.sh"
~/.bashrc &>/dev/null
;
then
echo
-e
"source ~/.env/bashrc_
$LOCALTYPE
.sh"
>>
~/.bashrc
;
fi
source
~/.bashrc
...
...
This diff is collapsed.
Click to expand it.
src/bashrc_git.sh
+
2
−
2
View file @
cec1edfc
...
...
@@ -22,8 +22,8 @@ function tokensetup(){
function
proxyEnvToggle
(){
if
[[
-z
"
$http_proxy
"
]]
;
then
echo
-e
"Proxy starts..."
export
http_proxy
=
http://
192.168.32.199:7890
export
https_proxy
=
http://
192.168.32.199:7890
export
http_proxy
=
http://
PROXYIPSWAP:PROXYPORTSWAP
export
https_proxy
=
http://
PROXYIPSWAP:PROXYPORTSWAP
else
echo
-e
"Proxy ends..."
unset
http_proxy
...
...
This diff is collapsed.
Click to expand it.
src/config_wsl
+
5
−
9
View file @
cec1edfc
...
...
@@ -9,14 +9,14 @@ PreferredAuthentications publickey,keyboard-interactive,password
Host ihep.cc
User root
p
ort 50022
P
ort 50022
Host ccopt.ihep.ac.cn
User zhangxuantong
p
ort 22
P
ort 22
Host ccopt
User zhangxuantong
p
ort 22
P
ort 22
Host herdtest115
User root
...
...
@@ -33,12 +33,8 @@ Host herddocs
Host sdiatce
User xzhang
Hostname 60.216.110.3
p
ort 22222
P
ort 22222
Host sdiatse
User xzhang
Hostname 60.216.110.4
port 22222
Host grid-data
User root
Hostname 192.168.60.116
Port 22222
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment