Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
LHCb Core Software
LbEnv
Commits
fa02f242
Commit
fa02f242
authored
Apr 26, 2022
by
Chris Burr
Browse files
Support running aliases.sh with "set -u"
parent
2a3fdbf7
Pipeline
#3894615
passed with stage
in 49 minutes and 10 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
python/LbEnv/data/aliases.sh
View file @
fa02f242
...
...
@@ -57,14 +57,14 @@ lb_set_workspace() {
}
alias
lb-set-workspace
=
lb_set_workspace
if
[
-n
"
$BASH_VERSION
"
-a
-n
"
$VIRTUAL_ENV
"
]
;
then
if
[
-n
"
$
{
BASH_VERSION
:-}
"
-a
-n
"
$
{
VIRTUAL_ENV
:-}
"
]
;
then
lb_enable_shell_completion
()
{
source
"
$VIRTUAL_ENV
/share/bash-completion/bash_completion"
}
alias
lb-enable-shell-completion
=
lb_enable_shell_completion
fi
if
[
-n
"
$ZSH_VERSION
"
-a
-n
"
$VIRTUAL_ENV
"
]
;
then
if
[
-n
"
$
{
ZSH_VERSION
:-}
"
-a
-n
"
$
{
VIRTUAL_ENV
:-}
"
]
;
then
lb_enable_shell_completion
()
{
source
"
$VIRTUAL_ENV
/share/zsh/zsh_completion"
}
...
...
Write
Preview
Supports
Markdown
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