Skip to content

Commit

Permalink
shenv and upgrade vim-plug
Browse files Browse the repository at this point in the history
  • Loading branch information
clvv committed Mar 13, 2023
1 parent 53a4776 commit cc19d23
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
14 changes: 7 additions & 7 deletions .env
@@ -1,9 +1,5 @@
# This file sets up the environment

# Don't load this file twice
# But tmux somehow resets PATH
[ -z "$_HOME_ENV" -o "$TMUX" ] || return

pathmunge() {
[ -d "$1" ] && case ":$PATH:" in
*:$1:*) ;;
Expand All @@ -20,7 +16,13 @@ pathmunge "$HOME/bin"
pathmunge "$HOME/.local/bin"

pathmunge "/home/linuxbrew/.linuxbrew/bin"
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
if [ -e "/home/linuxbrew/.linuxbrew/bin/brew" ]; then
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
fi

if [ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ]; then
. "$HOME/.nix-profile/etc/profile.d/nix.sh"
fi

export PYTHONSTARTUP="$HOME/.pythonrc.py"
export PAGER="$HOME/bin/vimpager"
Expand All @@ -35,6 +37,4 @@ export LSCOLORS="Exfxcxdxbxegedabagacad"
ls --color=auto > /dev/null 2>&1 || \
ls -G -d / > /dev/null 2>&1 && export CLICOLOR=yes

export _HOME_ENV=1

# vim: se ft=sh:
7 changes: 4 additions & 3 deletions .zshrc
Expand Up @@ -11,16 +11,17 @@ for config ($HOME/.zsh/*.zsh) source "$config"
# Load and initialize the completion system ignoring insecure directories.
autoload -Uz compinit && compinit -i

[ -s "$HOME/.shenv" ] && source "$HOME/.shenv"
[ -s "$HOME/.aliases" ] && source "$HOME/.aliases"

FASD_CACHE="$HOME/.fasd-init-zsh"

if [ "${commands[fasd]}" -nt "$FASD_CACHE" -o ! -f "$FASD_CACHE" ]; then
fasd --init posix-alias zsh-{hook,ccomp,ccomp-install,wcomp,wcomp-install} \
>! "$FASD_CACHE"
fi

if [ -e "$HOME/lib/zsh-yarn-completions/zsh-yarn-completions.plugin.zsh" ]; then
source "$HOME/lib/zsh-yarn-completions/zsh-yarn-completions.plugin.zsh"
fi

source "$FASD_CACHE"

: # set $? to 0
Expand Down
2 changes: 1 addition & 1 deletion lib/vim-plug

0 comments on commit cc19d23

Please sign in to comment.