-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
43 lines (35 loc) · 965 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
#!/bin/bash
# ~/.bashrc: executed by bash(1) for non-login shells.
# If not running interactively, don't do anything
case $- in
*i*) ;;
*) return ;;
esac
# Configure PS1
PS1="\u@\h \W\$ "
# Source before the following so that all the paths work
# From Jessie Frazelle at https://github.com/jessfraz/dotfiles under MIT license
for file in .bashrc_sources/*; do
if [[ -r "$file" ]] && [[ -f "$file" ]]; then
# shellcheck source=/dev/null
source "$file"
fi
done
unset file
# Source private bashrc_sources
for file in ~/.config/private/bashrc_sources/*; do
if [[ -r "$file" ]] && [[ -f "$file" ]]; then
# shellcheck source=/dev/null
source "$file"
fi
done
unset file
# Go to directory using cd if command is a directory
shopt -s autocd
# Autocorrect typos in path names when using cd
shopt -s cdspell
# Append to the Bash history file, rather than overwriting it
shopt -s histappend
HISTSIZE=-1
HISTFILESIZE=-1
HISTCONTROL=erasedups