-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_profile_fedora
More file actions
46 lines (36 loc) · 1.01 KB
/
bash_profile_fedora
File metadata and controls
46 lines (36 loc) · 1.01 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
# .bash_profile
# Get the aliases and functions.
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
# User specific environment for login shell only.
# Set environment variable $PATH .
# Prepend $HOME/.local/bin:$HOME/bin: to $PATH if not present.
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
then
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
fi
# Append Go bin directory to $PATH .
if ! [[ "$PATH" =~ '/usr/local/go/bin' ]]
then
PATH="$PATH:/usr/local/go/bin"
fi
# Copied from ~/.cargo/env .
# rustup shell setup
# affix colons on either side of $PATH to simplify matching
case ":${PATH}:" in
*:"$HOME/.cargo/bin":*)
;;
*)
# Prepending path in case a system-installed rustc needs to be overridden
PATH="$HOME/.cargo/bin:$PATH"
;;
esac
export PATH
# Set minicom startup options.
export MINICOM='-c on'
export EDITOR='/usr/bin/nvim'
# Initialise programs.
# This must be at the end of the Bash initialisation process.
eval "$(zoxide init bash --cmd cd)"
eval "$(starship init bash)"