-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Powerline-Shell: use pipx, install globally, and bookworm compat
work towards #2401
- Loading branch information
1 parent
2d46e6c
commit d9ae70a
Showing
2 changed files
with
23 additions
and
6 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
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,6 +1,10 @@ | ||
#!/bin/bash | ||
|
||
# note: do not check exit code from pipx since exit code is set to 1 if not already installed | ||
sudo PIPX_HOME=/usr/local/pipx PIPX_BIN_DIR=/usr/local/bin pipx uninstall powerline-shell | ||
purge_packages || exit 1 | ||
sudo pip3 uninstall -y powerline-shell | ||
|
||
#Remove powerline-shell function from ~/.bashrc if already there | ||
sed -i '/powerline-shell/d' ~/.bashrc | ||
# Remove powerline-shell function from /etc/bash.bashrc if already there | ||
sudo sed -i '/powerline-shell/d' /etc/bash.bashrc |