diff options
| author | 2024-09-01 23:18:36 -0400 | |
|---|---|---|
| committer | 2024-09-01 23:18:36 -0400 | |
| commit | 112a83175cd87f3cedbce61a67d73e86a24d3957 (patch) | |
| tree | 49bcc3c1fa8ce5254e789c1c5685d6f0a88639be /install.sh | |
| parent | lunar shell logo (diff) | |
updated help and fixed SIGINT
Diffstat (limited to 'install.sh')
| -rw-r--r-- | install.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -15,12 +15,18 @@ rm premake.tar.gz premake5 gmake make -sudo cp ./bin/Debug/lush/lush /usr/bin/lush +# Install the new shell binary to a temporary location +sudo cp ./bin/Debug/lush/lush /usr/bin/lush.new +# Atomically replace the old binary +sudo mv /usr/bin/lush.new /usr/bin/lush + +# Ensure the shell is registered in /etc/shells if ! grep -Fxq "/usr/bin/lush" /etc/shells; then echo "/usr/bin/lush" | sudo tee -a /etc/shells >/dev/null fi +# Optionally change the shell chsh -s /usr/bin/lush echo "=====================" |
