-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
34 lines (26 loc) · 1022 Bytes
/
.aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Enable aliases to be sudo.ed
alias sudo='sudo '
# Color!
alias ls='command ls --color=auto'
alias grep='command grep --color=auto'
# Command Shortcuts
# Directory Listings
alias ll='ls -alh'
# Default to human readable figures
alias df='df -h'
alias du='du -h'
# Faster directory navigation
alias ..='cd ..'
alias ...='cd ../..'
alias -- -='cd -'
# Shortcuts
alias cyberpanelupdate='sudo su - -c "sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)"'
# IP Addresses
alias remoteip='dig +short -4 myip.opendns.com @resolver1.opendns.com'
alias remoteip6='dig +short -6 myip.opendns.com AAAA @resolver1.opendns.com'
# macOS Aliases
if [[ "$OSTYPE" =~ ^darwin ]]; then
source "${HOME}/.aliases_macos"
fi
# Allow for dotfiles to be updated
alias dotfiles_update="cd ~ && curl -Lk# https://github.com/calyso/dotfiles/tarball/master | tar --strip-components 1 -xz && source .${SHELL##*/}rc"