-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbashrc
More file actions
25 lines (21 loc) · 831 Bytes
/
bashrc
File metadata and controls
25 lines (21 loc) · 831 Bytes
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
#!/usr/bin/env bash
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# If not running interactively, don't do anything
[[ $- == *i* ]] || return
# Bash enhacements
for option in cdspell checkwinsize extglob globstar histappend nocaseglob; do
shopt -s "$option" 2> /dev/null
done
unset option
# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi