clone url: git://git.m455.casa/dotfiles
profile
1 | # this config requires your terminal emulator to run as a login shell |
2 |
|
3 | export PATH="$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin" |
4 | export PATH="$PATH:$HOME/bin:$HOME/.local/bin" |
5 | export PATH="$PATH:$HOME/.vim/pack/plugins/start/fzf/bin" |
6 | export EDITOR=vi |
7 |
|
8 | green="\[\e[1;32m\]" |
9 | blue="\[\e[1;34m\]" |
10 | magenta="\[\e[1;35m\]" |
11 | reset="\[\e[0;39m\]" |
12 |
|
13 | vf() { |
14 | file="$(fzf)" |
15 | if [ "$file" != "" ]; then |
16 | $EDITOR "$file" |
17 | fi |
18 | } |
19 |
|
20 | gf() { |
21 | branch="$(git branch -a | fzf | tr -d '[:space:]')" |
22 | if [ "$branch" != "" ]; then |
23 | git checkout "$branch" |
24 | fi |
25 | } |
26 |
|
27 | if [ "$(hostname)" = "pancake" ]; then |
28 | export PS1="$blue\w$magenta\$(__git_ps1)$reset\$ " |
29 | else |
30 | export PS1="$green\u@\H $blue\w$magenta\$(__git_ps1)$reset\$ " |
31 | fi |
32 |
|
33 | alias ls="ls --color=auto" |
34 | alias grep="grep -I --color=auto --exclude-dir=.git" |