-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
47 lines (44 loc) · 1.54 KB
/
.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
35
36
37
38
39
40
41
42
43
44
45
46
47
#All My zsh aliases go here!
alias cl="clear;l"
alias ucl="cd ..;clear;ls"
alias cll="cl;ll"
alias cla="clear;la"
alias h="cd ~"
alias u="cd .."
alias s="cd -" # quickly move between the current and previous directories
alias reload="source ${HOME}/.source_list"
alias ae="vi $HOME/.aliases;reload" # ae stands for alias edit
alias z="vi $HOME/.zshrc;reload" # z open .zshrc
alias ve="vi $HOME/.vars;reload" # ve stands for variable edit
alias fu="vi $HOME/.func;reload" # fu open custom functions file
alias vr="vi $HOME/Code/dots/.vimrc" # opens .vimrc
alias p="ping -i 0.2 -c 10 8.8.8.8 | grep packet"
alias la="exa -aF"
alias lu="l ../"
alias ll="exa -laF"
alias l="exa -FG"
alias lt="exa --tree"
alias br="bat README.md"
alias myip="curl ifconfig.me" # Show your Public IP
alias nv="nvim"
alias vi="vim"
alias xe="chmod +x" # quickly make a file executable
alias dt="date +'%Y-%m-%d'"
alias pwn="sudo chown -R $USER"
# System Specific aliases here
if [ "$(uname)" = "Linux" ]; then
# Linux Specific
alias ipa="ifconfig | grep inet" # Show Local IP
alias ifmac="ifconfig | grep ether" # Show MAC Address
alias ifs="ifconfig | grep status" # Show interface status
alias di="dict"
alias i="sudo apt install"
else
# Mac Specific
alias ip="ipconfig"
alias ipa="ipconfig getifaddr en0" # Show Local IP
alias ifmac="ifconfig en0 | grep ether" # Show MAC Address
alias ifs="ifconfig en0 | grep status" # Show interface status
alias o="open"
alias i="brew install"
fi