Add zsh config to base package

This commit is contained in:
Buddy Sandidge 2020-12-23 11:52:42 -08:00
parent b79b34ee29
commit 3d976d8e84
7 changed files with 27 additions and 4 deletions

View File

@ -1,3 +0,0 @@
#ft=bash
alias ls='ls -G'

View File

@ -0,0 +1,2 @@
#shellcheck disable=SC2034
BASH_SILENCE_DEPRECATION_WARNING=1

View File

@ -0,0 +1,2 @@
#shellcheck disable=SC2034
CLICOLOR=1

View File

@ -0,0 +1,3 @@
setopt autocd
setopt autopushd
setopt pushdignoredups

19
base/.zshrc Normal file
View File

@ -0,0 +1,19 @@
if [[ -d "${XDG_CONFIG_HOME}/zsh/env.d" ]]; then
for file in "${XDG_CONFIG_HOME}"/zsh/env.d/*.env(N); do
eval "$(
grep -v '^\s*\#' "${file}" |
grep -v '^\s*$' |
sed 's/^\s*export//g' |
sed 's/^/export /g'
)"
done
fi
if [ -d "${XDG_CONFIG_HOME}/zsh/zshrc.d" ]; then
for file in "${XDG_CONFIG_HOME}"/zsh/zshrc.d/*.sh(N); do
if [ -r "$file" ]; then
#shellcheck disable=1090
. "$file"
fi
done
fi

View File

@ -1,3 +1,2 @@
# shellcheck disable=SC2034
BASH_SILENCE_DEPRECATION_WARNING=1
PATH="${PATH}:${HOME}/.rbenv/shims:/usr/local/opt/mysql-client/bin:${HOME}/google-cloud-sdk/bin"

View File

@ -0,0 +1 @@
eval "$(starship init zsh)"