From d00dff82886992cdad94ac70bc438ec5b2bda1a2 Mon Sep 17 00:00:00 2001 From: boom2 Date: Wed, 22 Nov 2023 22:39:56 -0500 Subject: more playbooks related to bash configs --- ansible-practice/system/.bashrc | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 ansible-practice/system/.bashrc (limited to 'ansible-practice/system/.bashrc') diff --git a/ansible-practice/system/.bashrc b/ansible-practice/system/.bashrc new file mode 100644 index 0000000..5d417ae --- /dev/null +++ b/ansible-practice/system/.bashrc @@ -0,0 +1,38 @@ +# execute our aliases +if [ -f ~/.bash_aliases ]; then +. ~/.bash_aliases +fi + +# history settings +## setting unlimited filesize and history size +export HISTFILESIZE= +export HISTSIZE= +export HISTCONTROL=erasedups:ignorespace:ignoredups + +# allows you to choose which standalone commands to drop from your history +export HISTIGNORE='pwd:exit:fg:bg:top:clear:history:ls:uptime:ll' + +# display timestamp before the history command entry +export HISTTIMEFORMAT='%F %T ' + +# https://cyb.org.uk/2021/05/03/bash-productivity.html +# http://mywiki.wooledge.org/BashFAQ/088 +PROMPT_COMMAND='history -a' +shopt -s histappend + +#setting prompt +# export PS1="\u@\h:\w\$ " +# export PS1="\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ " +export PS1="\n\[\033[11;33m\][\[\033[11;36m\]\D{%F} \t\[\033[11;33m\]][\[\033[11;36m\]\!\[\033[11;33m\]]\n[\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00;33m\]]\[\033[00m\]\n\$ " +export PS2="> " + +# the default editor +export EDITOR=vim + +# add color +eval `dircolors -b` + +# this function calls 'cd' to enter a directory and then immediately calls 'ls' +cdls() { + cd "$@" && ll; +} -- cgit v1.2.3-54-g00ecf