-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaliases
More file actions
37 lines (31 loc) · 694 Bytes
/
aliases
File metadata and controls
37 lines (31 loc) · 694 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
29
30
31
32
33
34
35
36
37
platform=$(uname)
# Basic Shortcuts
alias s="ssh"
alias g='git'
alias python='python3'
alias pip='pip3'
alias be="bundle exec"
alias migrate="rails db:migrate"
# Navigation
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
# Standard Operations
alias cp='cp -i'
alias mv='mv -i'
alias rm='rm -i'
# Colored Output & List Formatting
if [[ $platform == 'Darwin' ]]; then
alias ls='ls -G'
alias sb='subl'
alias pgup="postgres -D /usr/local/var/postgres"
alias dcup="docker-compose up"
else
alias ls='ls --color=auto'
fi
alias ll='ls -lh'
alias la='ls -A'
alias l='ls -CF'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'