Add exec zsh after apt install to auto-restart shell
Co-authored-by: krolchonok <40743392+krolchonok@users.noreply.github.com>
This commit is contained in:
2
.zshrc
2
.zshrc
@@ -147,7 +147,7 @@ alias untargz='tar -xvzf'
|
|||||||
function a() {
|
function a() {
|
||||||
if [ "$1" = "i" ]; then
|
if [ "$1" = "i" ]; then
|
||||||
shift
|
shift
|
||||||
sudo apt install "$@"
|
sudo apt install "$@" && exec zsh
|
||||||
elif [ "$1" = "u" ]; then
|
elif [ "$1" = "u" ]; then
|
||||||
sudo apt update
|
sudo apt update
|
||||||
elif [ "$1" = "up" ]; then
|
elif [ "$1" = "up" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user