-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
74 lines (54 loc) · 1.56 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
73
74
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# See bash(2) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000000
HISTFILESIZE=1000000
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# vi keybindings with clear screen
set -o vi
bind -m vi-insert "\C-l":clear-screen
bind -m vi-insert "\C-n":next-history
bind -m vi-insert "\C-p":previous-history
if [ -f ~/.profile ]; then
. ~/.profile
fi
if [ -f ~/.profile.local ]; then
. ~/.profile.local
fi
if [ -f ~/.bash_functions ]; then
. ~/.bash_functions
fi
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
if [ -f ~/.asdf/asdf.sh ]; then
. ~/.asdf/asdf.sh
fi
#git stuff
if [ -f /usr/share/git/completion/git-completion.bash ]; then
. /usr/share/git/completion/git-completion.bash
fi
if [ -f /usr/share/fzf/key-bindings.bash ]; then
. /usr/share/fzf/key-bindings.bash
fi
if [ -f /usr/share/fzf/completion.bash ]; then
. /usr/share/fzf/completion.bash
fi
if [ -f $HOME/.gemrc_local ]; then
export GEMRC=$HOME/.gemrc_local
fi
HOST_PS1=${HOST_PS1:=🍕 }
# le fancy PS1
export PS1="$HOST_PS1\[\e[1m\]\[\e[35m\]-> \[\e[34m\]\w\[\e[33m\] \[\e[0m\]"
# prompt for vhs
#export PS1="\[$(tput bold)\]\[$(tput setaf 4)\] > \[$(tput sgr0)\]"
. "$HOME/.cargo/env"
# i use neovim btw
export EDITOR=nvim