Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
Acme.Sh
Commits
acafa585
Commit
acafa585
authored
May 09, 2016
by
neil
Browse files
support tcsh
parent
7939b419
Changes
1
Show whitespace changes
Inline
Side-by-side
acme.sh
View file @
acafa585
...
@@ -1912,6 +1912,14 @@ _installalias() {
...
@@ -1912,6 +1912,14 @@ _installalias() {
_setopt
"
$_csh_profile
"
"source
\"
$_cshfile
\"
"
_setopt
"
$_csh_profile
"
"source
\"
$_cshfile
\"
"
fi
fi
#for tcsh
_tcsh_profile
=
"
$HOME
/.tcshrc"
if
[
-f
"
$_tcsh_profile
"
]
;
then
_setopt
"
$_cshfile
"
"setenv LE_WORKING_DIR"
" "
"
\"
$LE_WORKING_DIR
\"
"
_setopt
"
$_cshfile
"
"alias
$PROJECT_ENTRY
"
" "
"
\"
$LE_WORKING_DIR
/
$PROJECT_ENTRY
\"
"
_setopt
"
$_tcsh_profile
"
"source
\"
$_cshfile
\"
"
fi
}
}
install
()
{
install
()
{
...
@@ -2019,6 +2027,12 @@ uninstall() {
...
@@ -2019,6 +2027,12 @@ uninstall() {
echo
"
$text
"
|
sed
"s|^.*
\"
$LE_WORKING_DIR
/
$PROJECT_NAME
.csh
\"
$|
|"
>
"
$_csh_profile
"
echo
"
$text
"
|
sed
"s|^.*
\"
$LE_WORKING_DIR
/
$PROJECT_NAME
.csh
\"
$|
|"
>
"
$_csh_profile
"
fi
fi
_tcsh_profile
=
"
$HOME
/.tcshrc"
if
[
-f
"
$_tcsh_profile
"
]
;
then
text
=
"
$(
cat
$_tcsh_profile
)
"
echo
"
$text
"
|
sed
"s|^.*
\"
$LE_WORKING_DIR
/
$PROJECT_NAME
.csh
\"
$|
|"
>
"
$_tcsh_profile
"
fi
rm
-f
$LE_WORKING_DIR
/
$PROJECT_ENTRY
rm
-f
$LE_WORKING_DIR
/
$PROJECT_ENTRY
_info
"The keys and certs are in
$LE_WORKING_DIR
, you can remove them by yourself."
_info
"The keys and certs are in
$LE_WORKING_DIR
, you can remove them by yourself."
...
...
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