-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbashrc
72 lines (58 loc) · 1.67 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
if [[ -f $HOME/.git-completion.bash ]]; then
. $HOME/.git-completion.bash
fi
if [[ -f $HOME/.tmuxinator.bash ]]; then
. $HOME/.tmuxinator.bash
fi
if [[ -f $HOME/.tmux/mux.bash ]]; then
. $HOME/.tmux/mux.bash
fi
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
if [[ $(command -v kubectl 2>/dev/null) ]]; then
source <(kubectl completion bash)
fi
if [[ -f $HOME/.asdf/asdf.sh ]]; then
source $HOME/.asdf/asdf.sh
fi
if [[ -d $HOME/Android ]]; then
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
fi
export NVIM_TUI_ENABLE_TRUE_COLOR=1
export TMUXINATOR_CONFIG="$HOME/.onhernandes/dotfiles/tmuxinator"
export EDITOR=nvim
export DOTFILES="$HOME/.onhernandes/dotfiles"
export PIPENV_VENV_IN_PROJECT=1
export NODE_ENV="development"
function _update_ps1() {
PS1=$(powerline-shell $?)
}
if [[ $(command -v powerline-shell) && $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
# Aliases
alias v='nvim'
alias r='source $HOME/.bashrc'
alias dotfiles-git="git --work-tree=${DOTFILES} --git-dir=${DOTFILES}/.git"
alias rpy="source venv/bin/activate"
alias clone="git clone"
alias ups="sudo systemctl start"
alias downs="sudo systemctl stop"
alias dps="docker ps -a"
alias dlogs="docker logs -f"
# export PS1="${PS1}\n\$ "
ssh-clone () {
git clone git@github.com:$1.git
}
https-clone () {
git clone https://github.com/$1.git
}
pfreeze () {
pip freeze > requirements.txt
}
export FZF_DEFAULT_COMMAND='fdfind --type f --strip-cwd-prefix'