-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_profile
executable file
·73 lines (57 loc) · 1.54 KB
/
.bash_profile
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
62
63
64
65
66
67
68
69
70
71
72
73
#--------------------------------------------------
# Author: Chris J. Lee
#--------------------------------------------------
# Ubuntu Shortcuts
###################################################
# Setup Exports
export EDITOR='nano'
# Setup Paths
export WS="/home/$USER/workspace/"
# Add path for nodejs
PATH="$PATH:$HOME/npm/bin"
# List Shortcuts
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'
alias ls='ls -atr --color=always'
alias _='cd -'
# Grep!
alias grep='grep --color=auto'
GREP_OPTIONS='--exclude-dir=\.git --exclude-dir=\.svn'
export GREP_OPTIONS
# Shortcuts for System Processes
alias s="source"
# alias o="nautilus"
# alias open="nautilus"
# Browsers
# alias chrome="/opt/google/chrome/chrome"
# alias ff="/usr/bin/firefox"
# Shortcuts for Editors
alias e='$EDITOR'
alias v="vim"
alias n="nano"
# System Files shortcuts
alias hosts='sudo $EDITOR /etc/hosts'
alias profile='sudo $EDITOR ~/.bash_profile'
alias profile.s='source ~/.bash_profile'
# System Folder Shortcuts
# alias dt='pushd /home/$USER/Desktop'
# alias dl='pushd /home/$USER/Downloads'
alias ws="pushd $WS"
# git aliases
alias ga='git add'
alias gst='git status'
alias gsb='git status -sb'
alias gd='git diff --relative --no-prefix | e'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gb='git branch'
alias gbr='git branch -va'
alias gba='git branch -a'
alias gco='git checkout'
alias gl="git log --oneline --reverse"
#
# Change the Bash PS in ~/.prompt file
##################################################
source $HOME/.bash_prompt
source $HOME/.bash_alias