-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaliases
More file actions
executable file
·28 lines (25 loc) · 846 Bytes
/
aliases
File metadata and controls
executable file
·28 lines (25 loc) · 846 Bytes
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
#
#
#
# Display all IP addresses without all the fluff of ifconfig
alias ips="ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'"
# Display public IP Address of this machine
alias myip="dig +short myip.opendns.com @resolver1.opendns.com"
# Useful aliases
alias ls='ls -G'
alias ll='ls -l'
alias ql='qlmanage -p 2>/dev/null'
alias grep="grep --color=auto"
# Shell-specific redo alias
if [ -n "$BASH_VERSION" ]; then
# BASH-specific history expansion (preserves original behavior)
alias redo='sudo \!-1'
elif [ -n "$ZSH_VERSION" ]; then
# ZSH-compatible version
alias redo='sudo $(fc -ln -1)'
fi
alias sb='cd ~/Developer/sandbox'
alias gh='cd ~/Developer/github/'
alias cnlp='cd $HOME/Developer/learning/coursera-nlp-1'
alias jp='source jupyter-python/bin/activate'
alias vlc='/Applications/VLC.app/Contents/MacOS/VLC'