-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.bashrc
More file actions
47 lines (41 loc) · 1.24 KB
/
.bashrc
File metadata and controls
47 lines (41 loc) · 1.24 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
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
shopt -s dotglob
for file in ~/.shell_commons.d/*; do
[[ -f "$file" ]] && source "$file"
done
unset file
for file in ~/.bash.d/*; do
if [ -f "$file" ]; then
source "$file"
fi
done
unset file
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
source /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
source /etc/bash_completion
fi
fi
for file in ~/.bash_completion.d/*; do
if [ -f "$file" ]; then
source "$file"
fi
done
unset file
shopt -u dotglob
# to make complete all aliases
complete -F _complete_alias "${!BASH_ALIASES[@]}"
# To source kitty completion
source <(kitty + complete setup bash)
# To search in the official repository when command is not found (Arch Linux specific config)
# Too slow
# . /usr/share/doc/pkgfile/command-not-found.bash
#if [[ $TERM == xterm-termite ]]; then
#. /etc/profile.d/vte.sh
#__vte_prompt_command
#fi
# BEGIN_KITTY_SHELL_INTEGRATION
if test -n "$KITTY_INSTALLATION_DIR" -a -e "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; then source "$KITTY_INSTALLATION_DIR/shell-integration/bash/kitty.bash"; fi
# END_KITTY_SHELL_INTEGRATION