Skip to content

Commit ad58d9b

Browse files
committed
Add ~/.bashrc
Signed-off-by: Jared Hocutt <[email protected]>
1 parent d221db8 commit ad58d9b

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

dot_bashrc

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# .bashrc
2+
3+
# Source global definitions
4+
if [ -f /etc/bashrc ]; then
5+
. /etc/bashrc
6+
fi
7+
8+
# User specific environment
9+
if ! [[ "$PATH" =~ "$HOME/.local/bin:$HOME/bin:" ]]
10+
then
11+
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
12+
fi
13+
export PATH
14+
15+
# Uncomment the following line if you don't like systemctl's auto-paging feature:
16+
# export SYSTEMD_PAGER=
17+
18+
# User specific aliases and functions
19+
20+
alias rm='rm -i'
21+
alias cp='cp -i'
22+
alias mv='mv -i'
23+
24+
alias cdpvol='cd /var/lib/containers/storage/volumes'
25+
alias fcmd='firewall-cmd'
26+
27+
# User configuration
28+
export EDITOR='vim'
29+
export PROJECT_HOME="${HOME}/projects"
30+
export GOPATH="${HOME}/go"
31+
export GPG_TTY=$(tty)
32+
33+
export HISTSIZE=50000000
34+
export HISTFILESIZE=$HISTSIZE
35+
export HISTCONTROL=ignoredups
36+
37+
if [ $TILIX_ID ] || [ $VTE_VERSION ]; then
38+
source /etc/profile.d/vte.sh
39+
fi
40+
41+
for file in ~/.{aliases,functions,secrets}; do
42+
if [[ -r "$file" ]] && [[ -f "$file" ]]; then
43+
source "$file"
44+
fi
45+
done
46+
unset file
47+
48+
if [[ -n "$PS1" ]] && [[ -z "$TMUX" ]] && [[ -n "$SSH_CONNECTION" ]]; then
49+
tmux attach-session -t ssh_tmux || tmux new-session -s ssh_tmux
50+
fi
51+

0 commit comments

Comments
 (0)