-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
38 lines (31 loc) · 1.2 KB
/
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
# Sample .bashrc for SUSE Linux
# Copyright (c) SUSE Software Solutions Germany GmbH
# There are 3 different types of shells in bash: the login shell, normal shell
# and interactive shell. Login shells read ~/.profile and interactive shells
# read ~/.bashrc; in our setup, /etc/profile sources ~/.bashrc - thus all
# settings made here will also take effect in a login shell.
#
# NOTE: It is recommended to make language settings in ~/.profile rather than
# here, since multilingual X sessions would not work properly if LANG is over-
# ridden in every subshell.
EDITOR="nvim"
test -s ~/.alias && . ~/.alias || true
check_path_or_add() {
local path="$1"
case ":${PATH}:" in
*:"$path":*)
;;
*)
# Prepending path in case a system-installed binary needs to be overridden
export PATH="$path:$PATH"
;;
esac
}
# add binaries to PATH if they aren't added yet
check_path_or_add "$HOME/.local/bin"
check_path_or_add "$HOME/.scripts"
. "$HOME/.atuin/bin/env"
[[ -f ~/.bash-preexec.sh ]] && source ~/.bash-preexec.sh
eval "$(atuin init bash)"
[[ $PS1 && -f /usr/share/bash-completion/bash_completion ]] && \
. /usr/share/bash-completion/bash_completion