-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy path.aliases
61 lines (46 loc) · 1.53 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# ---------------------------------
# Common aliases
# ---------------------------------
alias home='cd ~'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias '?=man'
alias ls='ls -A --color=auto'
# ---------------------------------
# Git specific aliases
# ---------------------------------
alias g='git'
# Note: these aliases have been moved to .gitconfig
# ---------------------------------
# NPM :D
# ---------------------------------
# This makes life MUCH easier :')
alias nr='npm run'
alias ni='npm install'
alias nid='npm install -D'
alias nip='npm install --only=prod'
# ---------------------------------
# Python virtual env aliases
# ---------------------------------
# Create a virtualenv with python3 as the interpreter
# I usually name my virtualenv .venv
alias venv="virtualenv -p $( which python3 ) .venv"
alias vac='source .venv/bin/activate'
# ---------------------------------
# Aliases for the Heroku CLI
# ---------------------------------
alias h='heroku'
alias hl='heroku login'
alias hc='heroku create'
alias gphm='git push heroku master'
# ---------------------------------
# Aliases for tmux
# ---------------------------------
# Revert from the three pane split (see the ide function) into a single pane
# -a kills all panes except the one specified by -t, and 0 is the first pane made (and hence the main pane)
alias xide='tmux kill-pane -a -t 0'
# This should be the last line of the file
# For local changes
# Don't make edits below this
[ -f "$HOME/.aliases.local" ] && source "$HOME/.aliases.local" || true