-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
51 lines (42 loc) · 1.06 KB
/
bashrc
File metadata and controls
51 lines (42 loc) · 1.06 KB
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
if [ -d $HOME/.local/bin ]; then
PATH="$PATH:$HOME/.local/bin"
fi
rm_fast ()
{
mv "$1" "$1.tmp"
rm -rf "$1.tmp" &
}
# interactive-only shell config below
[[ $- != *i* ]] && return
# unlimited history file
HISTSIZE=
HISTFILESIZE=
HISTCONTROL=ignoreboth
HISTTIMEFORMAT="%s;"
shopt -s histappend
source_one ()
{
for fpath in "$@"; do
if [ ! -f "$fpath" ]; then
continue
fi
if source "$fpath"; then
return "$?"
fi
done
return 1
}
if command -v fzf &> /dev/null; then
# Arch (first below) and Ubuntu install these to different paths
source_one /usr/share/fzf/completion.bash /usr/share/doc/fzf/examples/completion.bash
source_one /usr/share/fzf/key-bindings.bash /usr/share/doc/fzf/examples/key-bindings.bash
fi
if source_one /usr/bin/virtualenvwrapper_lazy.sh; then
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_SCRIPT=/usr/bin/virtualenvwrapper.sh
fi
alias grep="grep --color"
alias ls="ls --color"
alias rg="RIPGREP_CONFIG_PATH=$HOME/.ripgreprc rg"
alias sl=ls
# export MANPAGER="less -R --use-color -Dd+c -Du+m"