Update .zshrc
This commit is contained in:
11
.zshrc
11
.zshrc
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user