Skip to content

Instantly share code, notes, and snippets.

@josuebasurto
Last active July 18, 2018 19:34
Show Gist options
  • Save josuebasurto/5f4a6146771000be254dfb9a1a0e3bed to your computer and use it in GitHub Desktop.
Save josuebasurto/5f4a6146771000be254dfb9a1a0e3bed to your computer and use it in GitHub Desktop.
Aliases para un manejo mas rapido de la consola
#!/bin/sh
echo "Running Aliases!"
# General
alias l='ls -lFah'
alias c='clear'
alias xx='exit'
alias aliases='cat ~/.bash_aliases'
alias disk='lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL'
# Required to have installed htop
alias top='htop'
# Git
alias glol='git log'
alias gco='git checkout'
alias gp='git pull'
alias gfa='git fetch --all --prune'
alias gfp='git fetch --all --prune && git pull'
# You can add more here
# Finalizing
cp ~/.bash_aliases ~/.bash_aliases.bak
echo "Backup your existing ~/.bash_aliases"
cp .bash_aliases.sh ~/.bash_aliases
echo "Replace your ~/.bash_aliases"
echo "Magic, now you have all this at your fingertips."

Josh Compiled Alias list

This is my compiled alias list.

@josuebasurto josuebasurto@gmail.com

There's no licence over this document, feel free to use it at your will.

I'm not responsible of the use of this information or scripts.

Important

Need to have installed:

  • htop
  • git

How to install this:

Into your server terminal run this:

> wget https://gist.githubusercontent.com/josuebasurto/5f4a6146771000be254dfb9a1a0e3bed/raw/0af3069fb9a5d03ca3083a6b39279362dc2bea2c/.bash_aliases.sh && mv .bash_aliases.sh .bash_aliases && source .bash_aliases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment