-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
38 lines (26 loc) · 798 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
#
# ~/.bashrc
#
stty -ixon #disable ctrl-s and ctrl-q
shopt -s autocd #cd without cd, just name
HISTSIZE= HISTFILESIZE= #infite history
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
export PATH=/home/amatej/.local/bin:$PATH
export XKB_DEFAULT_OPTIONS=caps:escape
export EDITOR=nvim
export NNN_USE_EDITOR=1
. .bash_aliases
export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/')\[\033[00m\] $ "
export NNN_TMPFILE="/tmp/nnn"
n()
{
nnn "$@"
if [ -f $NNN_TMPFILE ]; then
. $NNN_TMPFILE
rm -f $NNN_TMPFILE > /dev/null
fi
}
# Use bash-completion, if available
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
. /usr/share/bash-completion/bash_completion