-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.bashrc2
32 lines (30 loc) · 1010 Bytes
/
.bashrc2
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
# Number of commands to remember
export HISTSIZE=10000
# Save history after every command
# (in case I want history from a running shell, or the shell crashes)
export PROMPT_COMMAND='history -a'
# Log timestamps of commands
export HISTTIMEFORMAT='%Y-%m-%d %H:%M.%S | '
# Set SIGHUP to jobs on exit
shopt -s huponexit
alias config='git --git-dir=$HOME/.dotfiles --work-tree=$HOME'
alias a='git add'
alias gb='git branch'
alias c='git commit'
alias gca='git commit --amend'
alias gco='git checkout'
alias gcp='git cherry-pick'
alias gpl='git pull'
alias gps='git push'
alias gr='git rev-parse --short HEAD'
alias gs='git status'
alias gwd='git diff --word-diff=color'
alias gwdc='git diff --word-diff=color --cached'
alias mr='ls -1rt | tail -n 1'
alias mrd='ls -1rtd */ | tail -n 1'
alias ta='tmux -CC a -t'
alias tls='tmux ls'
alias tk='tmux kill-session -t'
alias tka='tmux kill-session -a'
export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
export PATH="$HOME/.local/bin:$PATH"