Browse Source

Merge branch 'master' of git.xchg.sh:angrygoats/essentials

master
Taylor Bockman 2 years ago
parent
commit
7665f61ae6
  1. 5
      dotfiles/bash/bashrc
  2. 6
      dotfiles/global_gitignore
  3. 9
      dotfiles/zsh/exports.zsh
  4. 6
      dotfiles/zsh/zprofile
  5. 23
      dotfiles/zsh/zshrc

5
dotfiles/bash/bashrc

@ -192,3 +192,8 @@ fi
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. # Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin" export PATH="$PATH:$HOME/.rvm/bin"
. "$HOME/.cargo/env" . "$HOME/.cargo/env"
if [ -f "~/.private" ]; then
source ~/.private
fi

6
dotfiles/global_gitignore

@ -38,8 +38,14 @@ tramp
# Notes file I tend to leave in projects # Notes file I tend to leave in projects
project-notes.org project-notes.org
todo.org
# Recent files # Recent files
recentf recentf
.DS_Store .DS_Store
# For pyright per-project configurations
pyrightconfig.json
*.sublime-project
*.sublime-workspace

9
dotfiles/zsh/exports.zsh

@ -29,5 +29,10 @@ export HISTCONTROL=ignoredups
# If go is installed, set the $GOPATH to the projects directory created above. # If go is installed, set the $GOPATH to the projects directory created above.
if which go > /dev/null; then export GOPATH=$HOME/.go; fi if which go > /dev/null; then export GOPATH=$HOME/.go; fi
export PATH="$PATH:$HOME/.rvm/bin" if [ -d "$HOME/.rvm" ]; then
. "$HOME/.cargo/env" export PATH="$PATH:$HOME/.rvm/bin"
fi
if [ -f "$HOME/.cargo/env" ]; then
. "$HOME/.cargo/env"
fi

6
dotfiles/zsh/zprofile

@ -19,8 +19,10 @@ if hash pyenv 2>/dev/null; then
eval "$(pyenv init -)" eval "$(pyenv init -)"
fi fi
# Local bin
export PATH=$HOME/bin:/usr/local/bin:$PATH export PATH=$HOME/bin:/usr/local/bin:$PATH
test -r /home/vm/.opam/opam-init/init.sh && . /home/vm/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true test -r /home/vm/.opam/opam-init/init.sh && . /home/vm/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true
. "$HOME/.cargo/env"
if [ -f "$HOME/.cargo/env" ]; then
. "$HOME/.cargo/env"
fi

23
dotfiles/zsh/zshrc

@ -59,20 +59,21 @@ if [[ ! -d $HOME/.zsh ]]; then
popd popd
fi fi
# Install zsh-syntax-highlighting if it doesn't exist autoload -U is-at-least
if [[ ! -d $HOME/.zsh/zsh-syntax-highlighting ]]; then
if ! is-at-least 4.3.11; then
echo "ZSH syntax highlighting requires ZSH >= 4.3.11 (current: $ZSH_VERSION)."
else
echo "Installing zsh syntax highlighting"
pushd
cd $HOME/.zsh # Install zsh-syntax-highlighting if it doesn't exist
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git if is-at-least 4.3.11; then
if [[ ! -d $HOME/.zsh/zsh-syntax-highlighting ]]; then
echo "Installing zsh syntax highlighting"
pushd
popd cd $HOME/.zsh
fi git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
popd
fi
else
echo "ZSH syntax highlighting requires ZSH >= 4.3.11 (current: $ZSH_VERSION)."
fi fi
zstyle ':completion:*:*:git:*' script $HOME/.zsh/git-completion.bash zstyle ':completion:*:*:git:*' script $HOME/.zsh/git-completion.bash

Loading…
Cancel
Save