summaryrefslogtreecommitdiffstats
path: root/dot_config
diff options
context:
space:
mode:
authorMatt Strapp <matt@mattstrapp.net>2024-12-05 16:41:09 -0600
committerMatt Strapp <matt@mattstrapp.net>2024-12-05 16:41:09 -0600
commit5e081fa45342500e2c9c319ab2b3aa73bc5830bd (patch)
treeffffb06d0e852d07a157463a4189c6951b4c22da /dot_config
parentmake the history file both extremely large and make sure it always can exist (diff)
downloaddotfiles-5e081fa45342500e2c9c319ab2b3aa73bc5830bd.tar
dotfiles-5e081fa45342500e2c9c319ab2b3aa73bc5830bd.tar.gz
dotfiles-5e081fa45342500e2c9c319ab2b3aa73bc5830bd.tar.bz2
dotfiles-5e081fa45342500e2c9c319ab2b3aa73bc5830bd.tar.lz
dotfiles-5e081fa45342500e2c9c319ab2b3aa73bc5830bd.tar.xz
dotfiles-5e081fa45342500e2c9c319ab2b3aa73bc5830bd.tar.zst
dotfiles-5e081fa45342500e2c9c319ab2b3aa73bc5830bd.zip
export
Signed-off-by: Matt Strapp <matt@mattstrapp.net>
Diffstat (limited to '')
-rw-r--r--dot_config/zsh/aliasrc6
-rw-r--r--dot_config/zsh/dot_zshrc4
2 files changed, 8 insertions, 2 deletions
diff --git a/dot_config/zsh/aliasrc b/dot_config/zsh/aliasrc
index 75903ee..e77c307 100644
--- a/dot_config/zsh/aliasrc
+++ b/dot_config/zsh/aliasrc
@@ -6,6 +6,12 @@
# If code-insiders exists and code does not, use code-insiders.
[ -x "$(command -v code-insiders)" ] && [ ! -x "$(command -v code)" ] && alias code="code-insiders"
+# if batcat exists and bat does not, use batcat.
+[ -x "$(command -v batcat)" ] && [ ! -x "$(command -v bat)" ] && alias bat="batcat"
+
+# If fdfind exists and fd does not, use fdfind.
+[ -x "$(command -v fdfind)" ] && [ ! -x "$(command -v fd)" ] && alias fd="fdfind"
+
# Use $XINITRC variable if file exists.
[ -f "$XINITRC" ] && alias startx='startx "$XINITRC"'
diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc
index 296d368..883bf24 100644
--- a/dot_config/zsh/dot_zshrc
+++ b/dot_config/zsh/dot_zshrc
@@ -39,8 +39,8 @@ setopt interactive_comments
setopt complete_aliases
# History in cache directory:
-HISTSIZE=999999999
-SAVEHIST=$HISTSIZE
+export HISTSIZE=9999999999
+export SAVEHIST=$HISTSIZE
if [ -z "$XDG_STATE_HOME/zsh" ]; then
mkdir -p "$XDG_STATE_HOME/zsh"
fi