Move zsh and aliases to conf.d style configs

This commit is contained in:
2023-03-30 15:46:14 -05:00
parent f3e303fd93
commit 2cbf3d6e55
21 changed files with 181 additions and 188 deletions

18
zsh.d/zellij.zsh Normal file
View File

@@ -0,0 +1,18 @@
# zellij
if (( $+commands[zellij] )); then
ZELLIJ_AUTO_ATTACH=true
eval "$(zellij setup --generate-auto-start zsh)"
ide() {
local layout="${ZELLIJ_LAYOUT:-${HOME}/.config/zellij/layouts/project.kdl}"
local name="${PWD##*/}"
local name="${name:-/}"
if (( ${+ZELLIJ} )); then
# FIXME: https://github.com/zellij-org/zellij/issues/2299
zellij action new-tab --layout "${layout}" --cwd "${PWD}" --name "${name}"
else
zellij --layout "${layout}" $@
fi
}
fi