Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
6626371d
Commit
6626371d
authored
May 08, 2016
by
neil
Browse files
minor. create the csh only when necessary.
parent
a4270efa
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
6626371d
...
@@ -1905,11 +1905,10 @@ _installalias() {
...
@@ -1905,11 +1905,10 @@ _installalias() {
#for csh
#for csh
_cshfile
=
"
$LE_WORKING_DIR
/
$PROJECT_ENTRY
.csh"
_cshfile
=
"
$LE_WORKING_DIR
/
$PROJECT_ENTRY
.csh"
_setopt
"
$_cshfile
"
"setenv LE_WORKING_DIR"
" "
"
\"
$LE_WORKING_DIR
\"
"
_setopt
"
$_cshfile
"
"alias
$PROJECT_ENTRY
"
" "
"
\"
$LE_WORKING_DIR
/
$PROJECT_ENTRY
\"
"
_csh_profile
=
"
$HOME
/.cshrc"
_csh_profile
=
"
$HOME
/.cshrc"
if
[
-f
"
$_csh_profile
"
]
;
then
if
[
-f
"
$_csh_profile
"
]
;
then
_setopt
"
$_cshfile
"
"setenv LE_WORKING_DIR"
" "
"
\"
$LE_WORKING_DIR
\"
"
_setopt
"
$_cshfile
"
"alias
$PROJECT_ENTRY
"
" "
"
\"
$LE_WORKING_DIR
/
$PROJECT_ENTRY
\"
"
_setopt
"
$_csh_profile
"
"source
\"
$_cshfile
\"
"
_setopt
"
$_csh_profile
"
"source
\"
$_cshfile
\"
"
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment