Clarify alias installer activation
This commit is contained in:
parent
7ec8741ba8
commit
0345901df1
@ -12,6 +12,8 @@ Run the installer:
|
||||
|
||||
The installer detects macOS/Linux and Bash/Zsh, then adds a managed source block to the right startup file. It is safe to run more than once and creates a timestamped backup before changing the startup file.
|
||||
|
||||
After running the installer, open a new shell or run `source ~/.zshrc` for Zsh or `source ~/.bashrc` / `source ~/.bash_profile` for Bash. A shell script cannot add aliases to the already-running parent shell by itself.
|
||||
|
||||
Preview the change without writing files:
|
||||
|
||||
```bash
|
||||
|
||||
@ -178,6 +178,9 @@ remove_existing_block "$target_rc" "$tmp_file"
|
||||
if cmp -s "$target_rc" "$new_file"; then
|
||||
echo
|
||||
echo "ByteLyst aliases are already installed."
|
||||
echo "They will be available in new shell sessions."
|
||||
echo "To use them in this shell now, run:"
|
||||
echo " source \"$target_rc\""
|
||||
exit 0
|
||||
fi
|
||||
|
||||
@ -188,5 +191,6 @@ cat "$new_file" > "$target_rc"
|
||||
echo
|
||||
echo "Installed ByteLyst aliases."
|
||||
echo "Backup created: $backup_file"
|
||||
echo "Open a new shell or run:"
|
||||
echo "They will be available in new shell sessions."
|
||||
echo "To use them in this shell now, run:"
|
||||
echo " source \"$target_rc\""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user