Add zsh config to base package
parent
b79b34ee29
commit
3d976d8e84
@ -1,3 +0,0 @@
|
||||
#ft=bash
|
||||
|
||||
alias ls='ls -G'
|
@ -0,0 +1,2 @@
|
||||
#shellcheck disable=SC2034
|
||||
BASH_SILENCE_DEPRECATION_WARNING=1
|
@ -0,0 +1,2 @@
|
||||
#shellcheck disable=SC2034
|
||||
CLICOLOR=1
|
@ -0,0 +1,3 @@
|
||||
setopt autocd
|
||||
setopt autopushd
|
||||
setopt pushdignoredups
|
@ -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
|
@ -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"
|
||||
|
@ -0,0 +1 @@
|
||||
eval "$(starship init zsh)"
|
Loading…
Reference in New Issue