-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot-bashrc
More file actions
28 lines (25 loc) · 850 Bytes
/
dot-bashrc
File metadata and controls
28 lines (25 loc) · 850 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
26
27
28
export XDG_RUNTIME_DIR=/run/user/1000
# Source completions
for file in $HOME/.config/bash/completions/*; do
[ -f "$file" ] && source "$file"
done
# auto-switch to zsh unless DISABLE_AUTO_ZSH is set or parent is already zsh
#
# DISABLE_AUTO_ZSH=1 exec bash # replaces current shell with bash and inherits the opt-out
#
if [[ -z "${DISABLE_AUTO_ZSH-}" ]]; then
parent_cmd=$(ps --no-header --pid="$PPID" --format=comm 2>/dev/null || true)
if [[ "$parent_cmd" != "zsh" ]]; then
if command -v zsh >/dev/null 2>&1; then
exec zsh
else
echo "zsh not found, staying in bash"
fi
fi
fi
# >>> aps completion start >>>
APS_COMPLETION_DIR="/home/developer/.local/share/aps/autocomplete"
if [ -f "$APS_COMPLETION_DIR/bash_autocomplete" ]; then
source "$APS_COMPLETION_DIR/bash_autocomplete"
fi
# <<< aps completion end <<<