-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.mybashrc
64 lines (49 loc) · 1.85 KB
/
.mybashrc
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
# Source this file from your ~/.bashrc
export EDITOR="vim"
export HISTCONTROL=ignoreboth
export HISTSIZE=1000
export HISTFILESIZE=2000
# Less syntax highlight
export LESSOPEN="| $(which highlight) %s --out-format xterm256 --line-numbers --quiet --force --style neon"
export LESS=" -R"
# GO setup
export GOPATH="$HOME/go"
export PATH="$PATH:$GOPATH/bin:$HOME/bin"
# JAVA (OpenJDK)
# Can get via `java -XshowSettings:properties -version`
export JAVA_HOME=/usr/lib64/openjdk-8/jre
# Colorful
alias ls='ls --color'
# Open file using VIM in a new tab (replace gvim with mvim on OSX)
alias mvi='gvim --servername VIM --remote-tab-silent'
# Best cmdline task mgr [ii.do](https://github.com/geekaholic/ii.do)
alias t='~/bin/ii.do'
alias bookmarks='~/bin/ii.do -f ~/bookmarks.markdown'
# wipeout history
alias wipeout='history -c && history -w'
# Mac OSX like open for Linux
alias open='xdg-open $1 2>/dev/null'
alias pbcopy='xclip -sel clip'
alias pbpaste='xclip -sel clip -o'
# Docker aliases
# Remove dangling images
alias docker-clean-images='docker image prune'
alias docker-clean-containers='docker rm $(docker ps -a -f status=exited -q)'
alias docker-clean-system='docker system prune'
#source /usr/etc/bash_completion.d/git-extras
source ~/.git-prompt.sh
#PS1="[\u@\h \W\[\033[01;30m\]\$(__git_ps1)\[\033[00m\]]\$ "
#PS1="\[\033[38;5;081m\]\u\[\033[38;5;245m\]@\[\033[38;5;206m\]\H \[\033[38;5;245m\]\w \[\033[38;5;081m\]$ \[\e[0m\]"
PS1="\[\033[38;5;081m\]\u\[\033[38;5;245m\]@\[\033[38;5;206m\]\H \[\033[38;5;245m\]\W\[\033[01;33m\]\$(__git_ps1) \[\033[38;5;081m\]$ \[\e[0m\]"
# Add some color with powerline
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/lib/python2.7/site-packages/powerline/bindings/bash/powerline.sh
function set-title() {
if [[ -z "$ORIG" ]]; then
ORIG=$PS1
fi
TITLE="\[\e]2;$@\a\]"
PS1=${ORIG}${TITLE}
}