summaryrefslogtreecommitdiffstats
path: root/dot_config
diff options
context:
space:
mode:
Diffstat (limited to 'dot_config')
-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