-
Notifications
You must be signed in to change notification settings - Fork 2
/
aliases-setup
executable file
·59 lines (47 loc) · 1.88 KB
/
aliases-setup
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
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
#
# Mac OS X Standard Bash Aliases Configuration
#
# Copyright 2016 - Bryan R. Hoffpauir, Jr.
#
#
#
## Colorize the ls output, show normal & hidden files and folders and sort alphabetically by default ##
alias ls="ls -GaFlh"
## Colorize the grep command output for ease of use (good for log files)##
alias grep="grep --color=auto"
alias egrep="egrep --color=auto"
alias fgrep="fgrep --color=auto"
# Make mount and other disk related commands output pretty and human readable format
alias mount="mount | column -t"
alias dfc="dfc -adoisTwW"
alias df="dfc"
alias dfo="/bin/df -aHi"
alias du="du -ch"
# Time functions
alias nowtime="date +'%T'"
alias nowdate="date +'%d-%m-%Y'"
alias now="nowtime && nowdate"
# Vim stuff
alias vi="vim"
alias svi="sudo vi"
# Airport controls the wireless adapter
alias airport="/System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport"
# Resume wget by default
alias wget="wget -c"
# use hub instead of standard git and add shortcuts for quick git listings and status output
alias git="hub"
alias gl="git lg"
alias gs="git status"
# homebrew aliases to speed up various tasks
alias bci="brew cask info" # Get info on a cask
alias bcs="brew cask search" # Search casks for a string
alias bi="brew info" # Get info on a brewed package
alias bs="brew desc -s" # Search all descriptions of brewed packages for a strin
alias bbd="brew bundle dump -v --force --global" # Dump currently installed brew packages, casks, and mas applications into ~/.Brewfile
# Update ALL THE THINGS
alias update="sh update"
# add alias for macOS version of ssh-add since that's the only one that supports adding passphrases to keychain
alias ssh-add="/usr/bin/ssh-add"
# add alias for running OmniDiskKSweeper as Root User to view all files of all users
alias omnidisksweeperroot="security execute-with-privileges /A*/OmniDiskSweeper.app/*/M*/* 2>&-"