From 493ada2c34c193b9345a65c4514f7df2c1ac1470 Mon Sep 17 00:00:00 2001 From: Alexander Popov Date: Sun, 8 Oct 2023 22:07:21 +0300 Subject: [PATCH] added history and completions settings --- ~/Bash/.bashrc | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/~/Bash/.bashrc b/~/Bash/.bashrc index b4761d3..a008028 100644 --- a/~/Bash/.bashrc +++ b/~/Bash/.bashrc @@ -1,12 +1,18 @@ # If not running interactively, don't do anything [[ $- != *i* ]] && return +# History settings ######################################## +HISTCONTROL=ignoreboth +HISTSIZE=1000 +HISTFILESIZE=2000 +########################################################### + export PS1='\[\e[0;33m\][\t] \[\e[0;32m\][\W]\[\e[0m\] \[\e[0;31m\]> \[\e[0m\]' export GPG_TTY=$(tty) export PATH="$PATH:$HOME/.local/bin" -# PMNG ################################################### +# PMNG #################################################### export PMNG_PWD_FILE="$HOME/Vault/.password.yml" export PMNG_TIMEOUT=10 ########################################################### @@ -47,3 +53,13 @@ if [ -d "/opt/sublime_text-4126/" ]; then alias subl='/opt/sublime_text-4126/sublime_text' fi ########################################################### + +# Enable programmable completion ########################## +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 +###########################################################