-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.bashrc
executable file
·43 lines (34 loc) · 959 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
39
40
41
42
43
#
# ~/.bashrc
#
# List of files to source
declare -a sources=(
/etc/bash.bashrc
~/.bash_aliases
)
# Source each file if found
for f in "${sources[@]}"; do
[ -f "$f" ] && . "$f"
done
# Colors for ls
LS_COLORS=$LS_COLORS:'ow=1;30;47:di=1;33:fi=1;36:ln=1;5:'; export LS_COLORS
# Looks for binary in packages (when command not found)
. /usr/share/doc/pkgfile/command-not-found.bash
# Autochange directory when entering a path
shopt -s autocd
# Do not overwrite files with stdout.
# Manually override noclobber option with
# $ echo "output" >| file.txt
#set -o noclobber
# Vi editing mode
set -o vi
# Bash git prompt
git_prompt="$HOME/.config/bash-git-prompt/gitprompt.sh"
if [ -f "$git_prompt" ]; then
GIT_PROMPT_ONLY_IN_REPO=1
. "$git_prompt"
fi
# Run fish if not child of fish already and if not run with bash -c for instance.
if [[ $(ps --no-header --pid=$PPID --format=comm) != "fish" && -z ${BASH_EXECUTION_STRING} ]]; then
exec fish
fi