forked from mlaursen/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
48 lines (38 loc) · 1.35 KB
/
.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
# User specific aliases and functions
alias vi='vim'
alias vif='vim `fzf`'
alias nif='nvim `fzf`'
# alias vim='nvim'
alias vimrc='vim ~/dotfiles/.vimrc'
alias ls='ls -AFG'
alias cp='cp -r'
alias rm='rm -rf'
alias mkdir='mkdir -pv'
alias reso='source ~/.zshrc'
alias rmd='cd ~/code/react-md'
alias dotfiles='cd ~/dotfiles'
if [ -x "$(command -v brew)" ]; then
# cheating and considering this mac specific stuff only
alias brewup='brew update; brew upgrade; brew cleanup; brew doctor'
alias vim='mvim -v'
# Allows <ctrl-s> in mac
stty -ixon
if [[ -e "/usr/local/share/bash-completion/bash_completion" ]]; then
# allow bash2 completions
export BASH_COMPLETION_COMPAT_DIR="/usr/local/etc/bash_completion.d"
source "/usr/local/share/bash-completion/bash_completion"
fi
else
# cheating and considering this centos specific stuff only
if [ -e /etc/profile.d/vte.sh ]; then
# re-enables remembering last pwd when creating new terminals
. /etc/profile.d/vte.sh
fi
fi
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
export FZF_DEFAULT_COMMAND='ag --hidden --ignore .git -g ""'
export PATH="/usr/local/sbin:$PATH:~/dotfiles/bin"
PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u @ \[\e[33m\]\w\[\e[0m\]/\n$ '