Reformat, tabs to spaces.

Yeah, I thought tabs were a good idea, not any more, so…
This commit is contained in:
Doncho N. Gunchev 2020-10-17 13:30:17 +03:00
parent d1d115a905
commit 674c7517dd

View file

@ -1,13 +1,14 @@
#!/bin/bash
# DESCRIPTION
# An attempt to seese industrial... ops, I ment an attempt to make my
# An attempt to seese industrial ops, I ment an attempt to make my
# bash prompt nicer and save all my bash history ordered by date with
# exit codes for later review...
# exit codes for later review
# LICENSE:
# Released under GNU Generic Public License. You should've received it with
# your GNU/Linux system. If not, write to the Free Software Foundation, Inc.,
# Released under GNU GPL v 2+. You should've received it with your GNU/Linux
# system. You can visit https://opensource.org/licenses/gpl-2.0.php or
# alternatively write to the Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
# KNOWN BUGS:
@ -15,10 +16,10 @@
# - logs the last command in history on control+d (EOF) or enter
# (could be fixed if we remember the index of the command used last time,
# which is currently removed by 'Cmd=${Cmd:7}')
# - does not log history from within mc (midnight commander)
# this can be viewed as a feature too :-) The problem is that mc
# changes PROMPT_COMMAND, hurting the prompt quite bad and
# killing the log.
# - does not log history from within mc (midnight commander) this can be
# viewed as a feature too :-) The problem is that mc changes
# PROMPT_COMMAND, hurting the prompt quite bad and killing the history.
# Could be fixed on mc's side, no high hopes though (see RHBZ#1183192)
# ps-twtty-7.sh - Nice bash prompt and history archiver
# by Doncho Gunchev <dgunchev@gmail.com>, 2020-10-11 14:46 EET
@ -37,9 +38,12 @@
# by Doncho N. Gunchev <dgunchev@gmail.com>, 2008-09-30 07:00 EEST
# BASED ON
# termwide prompt with tty number by Giles, 1998-11-02, https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x869.html
# termwide prompt with tty number by Giles, 1998-11-02
# - https://tldp.org/HOWTO/Bash-Prompt-HOWTO/x869.html
# and
# .bashrc_history.sh by Yaroslav Halchenko, 2005-03-10, http://www.onerussian.com, https://debian-administration.org/article/175/BASH_history_forever.
# .bashrc_history.sh by Yaroslav Halchenko, 2005-03-10
# - http://www.onerussian.com/Linux/bash_history.phtml
# - https://debian-administration.org/article/175/BASH_history_forever.
if [ "$PS1" ] ; then # interactive shell detection