-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
37 lines (29 loc) · 833 Bytes
/
bashrc
File metadata and controls
37 lines (29 loc) · 833 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
29
30
31
32
33
34
35
36
37
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
if [[ -f /run/.containerenv && -f /run/.toolboxenv ]]; then
CNTX='⬢'
export $(cat /run/.containerenv | grep name)
else
# When not in a toolbox, don't show context unless running with privileges or in SSH.
CNTX='$'
name=$(hostname)
fi
# User specific environment
PATH="$HOME/.local/bin:$HOME/bin:$HOME/.krew/bin:$PATH"
export PATH
# Customize Output Alias
alias ls='ls --color=auto'
alias ll='ls -l --color=auto'
alias kc="kubectl"
alias ncspot='flatpak run io.github.hrkfdn.ncspot'
# Customize PS1
export PS1='\[\e[32m\]me\[\e[m\] \[\e[1;93m\]\w\[\e[m\] [$name]
\[\e[1;37m\]$CNTX\[\e[m\] '
source /etc/profile.d/*.sh
# User specific aliases and functions
for F in $HOME/.config/private_local/bash*
do source $F
done