Commit fa02f242 authored by Chris Burr's avatar Chris Burr
Browse files

Support running aliases.sh with "set -u"

parent 2a3fdbf7
Pipeline #3894615 passed with stage
in 49 minutes and 10 seconds
......@@ -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"
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment