-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
53 lines (41 loc) · 859 Bytes
/
bashrc
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
#!/bin/bash
set -o vi
# editor
export EDITOR=vim
# color (for mac terminal)
export CLICOLOR=1
# history
HISTTIMEFORMAT='%F %T '
HISTCONTROL=ignoreboth
shopt -s histappend # append to hist file
HISTSIZE=99999
HISTFILESIZE=99999
alias h='history'
# dir traversal
alias ..='cd ..'
alias ...='cd ../..'
# fileops
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
case $OSTYPE in
darwin*)
alias ll='ls -ahlv'
;;
linux*)
alias ll='ls --color=auto -ahlv'
;;
esac
# for nerdtree
export LC_ALL=en_US.utf-8
export LANG="$LC_ALL"
# gcloud
export PATH=$HOME/google-cloud-sdk/bin:$PATH
# git prompt
GIT_PROMPT_ONLY_IN_REPO=0
GIT_PROMPT_THEME_FILE=$HOME/.git-prompt-colors.sh
source $HOME/.bash-git-prompt/gitprompt.sh
# python
source $HOME/virtualenvs/dev/bin/activate
# fzf
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -l -g ""'