-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.aliases
40 lines (35 loc) · 1.13 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
# Required for my dotfile management setup
alias dots='/usr/local/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
# Navigation
alias ..="cd .."
alias cd..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
# Git
alias gcl="git clone"
alias gb="git branch"
alias gf="git fetch"
alias gp="git pull"
alias ga="git add"
alias gd="git diff"
alias gco="git checkout"
alias gcm="git checkout master"
alias gc="git commit"
alias gst="git status"
# Shortcuts
alias v="vim"
alias rserve="bundle exec rails s"
alias rcon="bundle exec rails c"
# Overrides
alias sudo="sudo -E " # carry over environment to sudo commands
alias cp="cp -i" # confirm before overwriting something
alias mv="mv -i" # confirm before overwriting something
alias df="df -h" # human-readable sizes
alias du="du -h" # human-readable sizes
alias free="free -m" # human-readable sizes
alias ll="ls -l" # detailed file list
alias la="ls -lA" # detailed file list with hidden files
alias wh="which -aS" # Informative version of which
# Make sure tmux plays nicely with vim themes
alias tmux="TERM=screen-256color-bce tmux"