Update .zshrc

This commit is contained in:
ushastoe
2025-08-15 11:03:44 +03:00
committed by GitHub
parent 1fc1404853
commit b96ec36264

11
.zshrc
View File

@@ -111,3 +111,14 @@ prompt_context() {
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Custom function for "a i"
function a() {
if [ "$1" = "i" ]; then
shift
sudo apt install "$@"
else
echo "Неизвестная команда: a $1"
fi
}