Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliases of apt outside of runtime bashrc script #5

Merged
merged 1 commit into from
Sep 20, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ Se puede desinstalar fácilmente ejecutando: ( recuerda poner el proxy :D )
curl https://raw.githubusercontent.com/GLUD/distroCustomization/master/desinstalar.sh | bash
```

O incluso actualizarlo: ( recuerda poner el proxy :D )
```bash
curl https://raw.githubusercontent.com/GLUD/distroCustomization/master/update.sh | bash
```

**Nota:** Si usas Solus el directorio `/usr/local/bin` no existe por defecto, puedes crearlo usando el siguiente comando:
```bash
sudo mkdir -p /usr/local/bin
Expand Down
21 changes: 10 additions & 11 deletions instalar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -155,20 +155,19 @@ export HISTIGNORE="&:ls:ll:la:l.:pwd:exit:clear"
EOF

# rationale: algunos alias para gestor de paquetes apt
sudo tee -a $aplicacion << 'EOF'
if apt --version &> /dev/null
then
sudo tee -a $aplicacion << 'EOF'
# rationale: alias para comando apt
if apt --version &> /dev/null
then
alias aref='sudo apt update'
alias aup='sudo apt upgrade'
alias ain='sudo apt install'
alias ase='apt search'
alias arm='sudo apt remove'
alias aarm='sudo apt autoremove'
fi
alias aref='sudo apt update'
alias aup='sudo apt upgrade'
alias ain='sudo apt install'
alias ase='apt search'
alias arm='sudo apt remove'
alias aarm='sudo apt autoremove'

EOF

fi
fi

# rationale: se adiciona una línea en los .bashrc que hace un source al glud.sh
Expand Down
2 changes: 2 additions & 0 deletions update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
curl https://raw.githubusercontent.com/GLUD/distroCustomization/master/desinstalar.sh | bash
curl https://raw.githubusercontent.com/GLUD/distroCustomization/master/instalar.sh | bash