-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases.sh
51 lines (38 loc) · 1.4 KB
/
aliases.sh
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
prohibit-subshells
alias prof='edit "$PROFILE"'
# Make dangerous commands less dangerous.
# -v: Log actions actually taken.
# -i: Request confirmation before deleting/overwriting.
# See also -n: Don't overwrite existing files.
# (-n causes cp to exit 1 if overwrites are prevented, but not mv (?!?).)
alias cp='cp -v -i'
alias mv='mv -v -i'
alias rm='rm -v -i'
# The `trash` program *claims* it uses Finder by default, but actually doesn't.
# See http://hasseg.org/trash/, https://github.com/ali-rantakari/trash
alias trash='trash -F'
alias please=sudo # Mind your manners!
alias pseudo=sudo
alias nuke='rm -rf'
alias chmod-yolo='chmod 777'
alias kj='kill %' # Kill Job
alias la='ls -Ab'
alias ll='ls -AbelGhiOT'
alias lll='ls -@AbelGhiOT' # Include extended attributes (multiple lines)
# The bash keyword 'time' occludes the actual 'time' program; only the
# latter has the handy -l option. (bash keywords can't be disabled via
# `enable -n`.)
alias time='/usr/bin/env time'
alias lessq='less --quit-if-one-screen --no-init'
alias ag="ag --pager 'bat --plain'"
alias aga='ag --all-types --hidden'
alias agp='ag --py'
alias agj='ag --js'
# alias ~~='subl --project ~/Dropbox/proj/home.sublime-project'
# alias pr='edit "$PROFILE"'
alias pbc=pbcopy
alias pbp=pbpaste
alias pbr='printf 🍺'
alias gimp='open -a GIMP-2.10.app'
icloud='cd ~/"Library/Mobile Documents/com~apple~CloudDocs"'
alias m='cmatrix -b -u8'