This repository was archived by the owner on Jan 24, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
56 lines (40 loc) · 1.35 KB
/
bashrc
File metadata and controls
56 lines (40 loc) · 1.35 KB
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
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
source /usr/share/git/completion/git-prompt.sh
# ...default:
#PS1='[\u@\h \W]\$ '
# ...git-prompt:
PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
export EDITOR="vim"
bind 'set completion-ignore-case on'
set -o vi
complete -cf sudo
bind 'set show-all-if-ambiguous on'
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
bind '"\ep": history-search-backward'
bind '"\en": history-search-forward'
# ls
alias ls='ls -hF --color=auto'
alias lr='ls -R' # recursive ls
alias ll='ls -l'
alias la='ll -A'
alias lx='ll -BX' # sort by extension
alias lz='ll -rS' # sort by size
alias lt='ll -rt' # sort by date
alias lm='la | more'
o() { [ -z "$@" ] && command kde-open . || command kde-open "$@" ; }
# alias ag='ag -S --pager="less -XFR" --stats'
alias ag='ag -S --pager="less -XFR"'
#http://stackoverflow.com/questions/7381039/how-can-i-remove-the-default-empty-buffer-from-vim
g() { [ -z "$(command gvim --serverlist)" ] && command gvim "$@" || command gvim --remote-silent "$@" ; }
f() { find -iname "*$1*"; }
alias pwds='pwd | head -c -1 | xsel -i'
alias pwdc='pwd | head -c -1 | xsel -i -b'
alias a=atom
export GOPATH=~/go
export PATH="$PATH:$GOPATH/bin"
export PATH="$PATH:$HOME/bin"