-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
completions should work when server not running
In neptune-cli: * process completions command before connecting to server. In install-bash-completions.sh: * modify error handling so error on any line will abort script.
- Loading branch information
1 parent
45e9d7a
commit b9f172e
Showing
2 changed files
with
17 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
set -e | ||
|
||
SCRIPT="$HOME/.bash_neptune_cli" | ||
LINE="source $SCRIPT" | ||
FILE="$HOME/.bashrc" | ||
|
||
cargo run --bin neptune-cli -- completions > $SCRIPT && \ | ||
grep -qF -- "$LINE" "$FILE" || echo "$LINE" >> "$FILE" && \ | ||
source $SCRIPT && \ | ||
cargo run --bin neptune-cli -- completions > $SCRIPT | ||
grep -qF -- "$LINE" "$FILE" || echo "$LINE" >> "$FILE" | ||
source $SCRIPT | ||
echo "completions installed to $SCRIPT and added to $FILE" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters