Clean and Document aliases and functions
Updated aliases and functions, generated a README to document each
This commit is contained in:
@@ -7,20 +7,19 @@ alias rm='rm -iv'
|
||||
alias df='df -h'
|
||||
alias du='du -h'
|
||||
|
||||
# Greps
|
||||
alias egrep='egrep --color=auto' # show differences in colour
|
||||
alias fgrep='fgrep --color=auto' # show differences in colour
|
||||
# Greps should always be colorized
|
||||
alias egrep='egrep --color=auto'
|
||||
alias fgrep='fgrep --color=auto'
|
||||
|
||||
# File Listing
|
||||
# Must have lsd installed (https://github.com/lsd-rs/lsd)
|
||||
# File Listing with LSD (https://github.com/lsd-rs/lsd)
|
||||
alias ls='lsd '
|
||||
alias lla='ls -al' # ll with . and ..
|
||||
alias ll='ls -l' # long list
|
||||
alias lla='ls -al' # ll with . and ..
|
||||
alias ll='ls -l' # long list
|
||||
|
||||
# Extras
|
||||
alias ping='ping -c 5' # Stop pinging after 5 pings
|
||||
alias vi='vim' # use vim instead of vi
|
||||
alias less='less -r' # repaint screen
|
||||
alias ping='ping -c 5' # Stop pinging after 5 pings
|
||||
alias vi='vim' # use vim instead of vi
|
||||
alias less='less -r' # repaint screen
|
||||
|
||||
# Get Ext IP
|
||||
alias extip='curl -s -4 icanhazip.com'
|
||||
@@ -29,8 +28,25 @@ alias extip='curl -s -4 icanhazip.com'
|
||||
alias mempigs='ps aux | awk '\''{print $6/1024 " MB\t\t" $11 " " $12}'\'' | sort -n | tail -10'
|
||||
|
||||
# send things to termpad
|
||||
# with httpie
|
||||
# with httpie
|
||||
alias tph=' http https://termpad.planethawleywood.com'
|
||||
# with cURL
|
||||
# with cURL
|
||||
alias tpc=' curl --data-binary @- https://termpad.planethawleywood.com'
|
||||
|
||||
# Git Aliases (very common and highly recommended)
|
||||
alias gs='git status'
|
||||
alias ga='git add .' # Adds all new and modified files in the current directory and subdirectories
|
||||
alias gc='git commit'
|
||||
alias gp='git push'
|
||||
alias gl='git pull'
|
||||
alias glog="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative"
|
||||
|
||||
# Navigation Shortcuts
|
||||
alias ..='cd ..'
|
||||
alias ...='cd ../..'
|
||||
|
||||
# History
|
||||
alias h='history'
|
||||
|
||||
# Ansible
|
||||
alias apb='ansible-playbook'
|
||||
|
||||
Reference in New Issue
Block a user