continue to migrate zsh
This commit is contained in:
parent
e11db257e4
commit
0556d7df36
3 changed files with 0 additions and 75 deletions
|
@ -1,6 +0,0 @@
|
|||
# # startx automatically if on first tty
|
||||
# if [[ -z "$DISPLAY" ]] && [[ $(tty) = /dev/tty1 ]]; then
|
||||
# startx
|
||||
# logout
|
||||
# fi
|
||||
|
|
@ -1,45 +0,0 @@
|
|||
# If not running interactively, don't do anything
|
||||
[ -z "$PS1" ] && return
|
||||
|
||||
if [ -d "$HOME/.dotfiles" ]; then
|
||||
DOTFILES_DIR="$HOME/.dotfiles"
|
||||
else
|
||||
echo "Unable to find dotfiles, exiting."
|
||||
return
|
||||
fi
|
||||
|
||||
# Make utilities available
|
||||
PATH="$DOTFILES_DIR/bin:$PATH"
|
||||
|
||||
src=(
|
||||
'base'
|
||||
'function'
|
||||
'path'
|
||||
'env'
|
||||
'prompt'
|
||||
'alias'
|
||||
'conda'
|
||||
'plugins'
|
||||
)
|
||||
|
||||
for dotfile in $src; do
|
||||
. $DOTFILES_DIR/lib/$dotfile.zsh
|
||||
done
|
||||
|
||||
unset dotfile
|
||||
|
||||
DOTFILES_EXTRA_DIR="$HOME/.extra"
|
||||
|
||||
if [ -d "$DOTFILES_EXTRA_DIR" ]; then
|
||||
for EXTRAFILE in "$DOTFILES_EXTRA_DIR"/runcom/*.sh; do
|
||||
[ -f "$EXTRAFILE" ] && . "$EXTRAFILE"
|
||||
done
|
||||
fi
|
||||
|
||||
unset EXTRAFILE
|
||||
|
||||
export DOTFILES_DIR DOTFILES_EXTRA_DIR
|
||||
|
||||
# welcome art
|
||||
# ! is-tty && $DOTFILES_DIR/bin/print-epoch
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
#
|
||||
# .zshenv - Zsh environment file, loaded always.
|
||||
#
|
||||
# NOTE: .zshenv has to live at ~/.zshenv, not in $ZDOTDIR! You can get around this by
|
||||
# symlinking .zshenv from your $ZDOTDIR: `ln -sf $ZDOTDIR/.zshenv ~/.zshenv`
|
||||
#
|
||||
|
||||
#
|
||||
# ZDOTDIR
|
||||
#
|
||||
|
||||
export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:-${HOME}/.config}
|
||||
export ZDOTDIR=${ZDOTDIR:-${XDG_CONFIG_HOME}/zsh}
|
||||
|
||||
#
|
||||
# .zprofile
|
||||
#
|
||||
|
||||
# We use .zprofile for everything else (load for non-login, non-interactive shells).
|
||||
if [[ ( "$SHLVL" -eq 1 && ! -o LOGIN ) && -s "${ZDOTDIR:-$HOME}/.zprofile" ]]; then
|
||||
source "${ZDOTDIR:-$HOME}/.zprofile"
|
||||
fi
|
||||
|
||||
# vim: ft=zsh sw=2 ts=2 et
|
Loading…
Reference in a new issue