Skip to content

Instantly share code, notes, and snippets.

@vyusufcan
Created June 2, 2025 14:18
Show Gist options
  • Save vyusufcan/da24068d2fdbfee6e1a6d0e715ff9c5d to your computer and use it in GitHub Desktop.
Save vyusufcan/da24068d2fdbfee6e1a6d0e715ff9c5d to your computer and use it in GitHub Desktop.
# Aliases
alias ll='ls -la'
alias gs='git status'
alias ga='git add'
alias gc='git commit -m'
alias gp='git push'
alias gl='git log --oneline --graph --decorate'
alias gd='git diff'
alias gco='git checkout'
alias gbr='git branch'
alias gpl='git pull'
alias gcl='git clone'
alias myip="curl -s ifconfig.me"
# Function to print aliases as a table
function show_aliases_table() {
echo -e "\n\033[1mAlias\t\tCommand\033[0m"
echo "-------------------------------"
printf "ll\t\t%s\n" "'ls -la'"
printf "gs\t\t%s\n" "'git status'"
printf "ga\t\t%s\n" "'git add'"
printf "gc\t\t%s\n" "'git commit -m'"
printf "gp\t\t%s\n" "'git push'"
printf "gl\t\t%s\n" "'git log --oneline --graph --decorate'"
printf "gd\t\t%s\n" "'git diff'"
printf "gco\t\t%s\n" "'git checkout'"
printf "gbr\t\t%s\n" "'git branch'"
printf "gpl\t\t%s\n" "'git pull'"
printf "gcl\t\t%s\n" "'git clone'"
printf "myip\t\t%s\n" "'curl -s ifconfig.me'"
}
show_aliases_table
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment