From c618bdbbea8b5b91eeac9dfde22ad7883b6e9974 Mon Sep 17 00:00:00 2001 From: tomit4 Date: Wed, 15 Jun 2022 13:48:21 -0700 Subject: [PATCH] fixed typo in scripts and added creating .zsh_history file on startup of zsh --- scripts/reboot.sh | 2 +- scripts/shutdown.sh | 2 +- zshrc.txt | 4 +++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/reboot.sh b/scripts/reboot.sh index 1b852aa8..82c60a1f 100755 --- a/scripts/reboot.sh +++ b/scripts/reboot.sh @@ -1,6 +1,6 @@ #!/bin/bash -if [ -f "$HOME/.zsh_history "] ; then +if [ -f "$HOME/.zsh_history " ] ; then rm "$HOME/.zsh_history" fi diff --git a/scripts/shutdown.sh b/scripts/shutdown.sh index c0180ec3..b9adad56 100755 --- a/scripts/shutdown.sh +++ b/scripts/shutdown.sh @@ -1,6 +1,6 @@ #!/bin/bash -if [ -f "$HOME/.zsh_history "] ; then +if [ -f "$HOME/.zsh_history " ] ; then rm "$HOME/.zsh_history" fi diff --git a/zshrc.txt b/zshrc.txt index 4a2ffbdd..2c341360 100644 --- a/zshrc.txt +++ b/zshrc.txt @@ -1,9 +1,11 @@ # ~/.zshrc # # to change default shell, use chsh -s $(which zsh) + +# creates a zsh_history file on startup +touch $HOME/.zsh_history # # create custom env variables: -# export cproj="/home/brian/Documents/Code/source_code_to_study/sandbox/msh" # custom BROWSER env for ddgr: export BROWSER=links