-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bashrc
32 lines (24 loc) · 773 Bytes
/
.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
#!/bin/bash
#
# ~/.bashrc
#
if [ -d ~/.config/bash ] && [ -f ~/.config/bash/aliases ]; then
source ~/.config/bash/aliases
fi
if [ -d ~/.config/bash ] && [ -f ~/.config/bash/commands ]; then
source ~/.config/bash/commands
fi
# If not running interactively, don't do anything:
[[ $- != *i* ]] && return
# Load the oh-my-posh prompt:
eval "$(oh-my-posh init bash --config /usr/share/oh-my-posh/themes/gruvbox.omp.json)"
# Default options:
alias ls='ls --color=auto'
alias grep='grep --color=auto'
PS1='[\u@\h \W]\$ '
# Expand the history size:
export HISTFILESIZE=10000
export HISTSIZE=500
export HISTTIMEFORMAT="%F %T" # add timestamp to history
# Remove duplicate lines and whitespace lines in the history:
export HISTCONTROL=erasedups:ignoredups:ignorespace