dotfiles/.bashrc

32 lines
751 B
Bash
Raw Permalink Normal View History

2023-11-13 01:52:14 +03:00
# .bashrc
2024-07-29 06:13:48 +03:00
export PATH=$PATH:$HOME/.local/bin
2023-11-13 01:52:14 +03:00
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
PS1='[\u@\h \W]\$ '
# Infinite history
HISTSIZE= HISTFILESIZE=
2023-12-25 01:18:28 +03:00
# Auto cd
shopt -s autocd
2024-07-30 15:55:06 +03:00
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
2023-11-13 01:52:14 +03:00
source $HOME/.bash_aliases
2024-07-30 15:55:06 +03:00
# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
. /usr/share/bash-completion/bash_completion
elif [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
fi