-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathprofile
executable file
·52 lines (36 loc) · 1.17 KB
/
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
set match-hidden-files off
set page-completions off
set completion-query-items 350
# create big history file
export HISTSIZE=20000
export HISTFILESIZE=20000
# Now bash writes and re-reads the history file every time it prints a new prompt for you.
export PROMPT_COMMAND="history -a ; history -n; ${PROMPT_COMMAND}"
shopt -s histappend
# don't put duplicate lines in the history and ignore same sucessive entries.
export HISTCONTROL=ignoreboth
# GIT ------------------------------------
# show current branch on shell
source ~/.gh-dotfiles/bash_git
source ~/.gh-dotfiles/task_completion.sh
export PS1='${debian_chroot:+($debian_chroot)}\u@\H:\[\033[1;33m\]\w\[\033[0m\] \n\$ '
# add short cut keys for terminal app
# Ctrl left right word
# Ctrl right forward word
# up history search backward
# down history search forward
bind -f ~/.gh-dotfiles/bash_bindings
# rails alias
alias r="rails"
# vim alias
alias mvimt="mvim --remote-tab"
alias v="open -a MacVim"
# task alias
alias t="task"
# annex alias
alias gan="git annex"
export PATH=$PATH:~/.gh-dotfiles/bin
# set editor for gem open
export EDITOR=vim
export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad