Skip to content

Commit

Permalink
Add new host files for database vagrant VM
Browse files Browse the repository at this point in the history
  • Loading branch information
jez committed Nov 26, 2016
1 parent 869ddf2 commit bd93411
Show file tree
Hide file tree
Showing 4 changed files with 79 additions and 0 deletions.
20 changes: 20 additions & 0 deletions host-databases-vm/fzf.zsh
@@ -0,0 +1,20 @@
# Setup fzf
# ---------
if [[ ! "$PATH" == */home/vagrant/from-source/fzf/bin* ]]; then
export PATH="$PATH:/home/vagrant/from-source/fzf/bin"
fi

# Man path
# --------
if [[ ! "$MANPATH" == */home/vagrant/from-source/fzf/man* && -d "/home/vagrant/from-source/fzf/man" ]]; then
export MANPATH="$MANPATH:/home/vagrant/from-source/fzf/man"
fi

# Auto-completion
# ---------------
[[ $- == *i* ]] && source "/home/vagrant/from-source/fzf/shell/completion.zsh" 2> /dev/null

# Key bindings
# ------------
source "/home/vagrant/from-source/fzf/shell/key-bindings.zsh"

9 changes: 9 additions & 0 deletions host-databases-vm/gitconfig
@@ -0,0 +1,9 @@
[include]
path = .util/gitconfig
[user]
name = Jacob Zimmerman
email = zimmerman.jake@gmail.com
[credential]
helper = cache
[push]
default = simple
36 changes: 36 additions & 0 deletions host-databases-vm/util/host.sh
@@ -0,0 +1,36 @@
#
# host.sh - Host-dependent configurations for "HOST"
#
# Description of file.
#
# Author
# Jake Zimmerman <jake@zimmerman.io>
#
# Usage
#
# Notes
#
# TODOs

# ----- PATH, MANPATH, and LD_LIBRARY_PATH ------------------------------------

# ----- aliases ---------------------------------------------------------------

# Use neovim for the lulz
alias vim="nvim -p"
alias vimdiff="nvim -d"

# ----- Prompt ---------------------------------------------------------------

PROMPT_PURE_DIR_COLOR="%F{blue}"

# ----- Miscellaneous ---------------------------------------------------------

# update-host
# Usage:
# update-host
#
# You should never have to call this. It's called when you call `update`
update-host () {
# nothing host-specific to update!
}
14 changes: 14 additions & 0 deletions host-databases-vm/util/host.zsh
@@ -0,0 +1,14 @@
#
# host.zsh - Host-specific, zsh-specific configurations
#
# Author
# Jake Zimmerman <jake@zimmerman.io>
#
# Usage
# Source this file.
#
# TODOs
# - n/a


source ~/.util/fzf.zsh

0 comments on commit bd93411

Please sign in to comment.