From 95da99ad23ad05a111e49a342c8d7920f02743d8 Mon Sep 17 00:00:00 2001 From: akanealw Date: Thu, 14 Mar 2024 20:21:26 -0500 Subject: [PATCH] added bash history tool --- proxmox/proxmox-pbs-essentials.sh | 4 +++- proxmox/proxmox-pve-essentials.sh | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/proxmox/proxmox-pbs-essentials.sh b/proxmox/proxmox-pbs-essentials.sh index 7f2cfae..e0785a4 100755 --- a/proxmox/proxmox-pbs-essentials.sh +++ b/proxmox/proxmox-pbs-essentials.sh @@ -13,7 +13,7 @@ apt-get update apt-get upgrade -y # download and install packages -apt-get install -y htop ncdu proxmox-backup sudo pwgen curl wget zip unzip git man-db cifs-utils nfs-common ntfs-3g parted libtalloc2 libwbclient0 net-tools gnupg apt-transport-https tmux gdisk bash-completion +apt-get install -y hstr htop ncdu proxmox-backup sudo pwgen curl wget zip unzip git man-db cifs-utils nfs-common ntfs-3g parted libtalloc2 libwbclient0 net-tools gnupg apt-transport-https tmux gdisk bash-completion # set input preferences if [[ ! -f /etc/inputrc.default ]] @@ -67,6 +67,8 @@ echo "alias aptac='sudo apt-get autoclean'" >> /etc/bash.bashrc echo "alias dpkgi='sudo dpkg -i'" >> /etc/bash.bashrc echo "alias tmuxls='tmux ls'" >> /etc/bash.bashrc echo "alias tmuxa='tmux attach -t'" >> /etc/bash.bashrc +echo "alias hh='hstr'" >> /etc/bash.bashrc +echo "export HSTR_CONFIG=hide-help,hicolor,prompt-bottom,ignorespace,raw-history-view" >> /etc/bash.bashrc # create tmux config rm /etc/tmux.conf* > /dev/null 2>&1 diff --git a/proxmox/proxmox-pve-essentials.sh b/proxmox/proxmox-pve-essentials.sh index 14bd77f..650949a 100755 --- a/proxmox/proxmox-pve-essentials.sh +++ b/proxmox/proxmox-pve-essentials.sh @@ -16,7 +16,7 @@ apt-get update apt-get upgrade -y # download and install packages -apt-get install -y htop ncdu proxmox-ve postfix open-iscsi sudo pwgen curl wget zip unzip git man-db cifs-utils nfs-common ntfs-3g parted libtalloc2 libwbclient0 net-tools gnupg apt-transport-https tmux gdisk bash-completion +apt-get install -y hstr htop ncdu proxmox-ve postfix open-iscsi sudo pwgen curl wget zip unzip git man-db cifs-utils nfs-common ntfs-3g parted libtalloc2 libwbclient0 net-tools gnupg apt-transport-https tmux gdisk bash-completion # update templates pveam update @@ -76,6 +76,8 @@ echo "alias aptac='sudo apt-get autoclean'" >> /etc/bash.bashrc echo "alias dpkgi='sudo dpkg -i'" >> /etc/bash.bashrc echo "alias tmuxls='tmux ls'" >> /etc/bash.bashrc echo "alias tmuxa='tmux attach -t'" >> /etc/bash.bashrc +echo "alias hh='hstr'" >> /etc/bash.bashrc +echo "export HSTR_CONFIG=hide-help,hicolor,prompt-bottom,ignorespace,raw-history-view" >> /etc/bash.bashrc # create tmux config rm /etc/tmux.conf* > /dev/null 2>&1