zsh: PATH and shellcheck stuff

This commit is contained in:
2023-04-12 10:07:51 +03:00
parent 9331b2b643
commit 4b1feb16fc
4 changed files with 10 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
#!/usr/bin/env bash
# shellcheck shell=zsh
# shellcheck shell=bash
# vim: filetype=zsh
export LC_ALL=fi_FI.utf8
@@ -40,6 +40,7 @@ hash shopt 2> /dev/null && shopt -s checkwinsize
# Set dircolors based on the file, if it exists
if command -v dircolors &> /dev/null; then
# shellcheck disable=SC2046
eval $(dircolors "$XDG_CONFIG_HOME/dircolors")
fi
@@ -49,5 +50,6 @@ if [ "$SHELL" = "$(which zsh)" ]; then
x-dc "$XDG_STATE_HOME/zsh"
export HISTFILE="$XDG_STATE_HOME/zsh/history"
zstyle ':completion:*' cache-path "$XDG_CACHE_HOME/zsh/zcompcache"
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
zstyle ':completion:*' list-colors "$LS_COLORS"
fi