From 72caa7f279507ac2a4fb8c1c346efaac2344173b Mon Sep 17 00:00:00 2001 From: Kevin Suttle Date: Thu, 1 Sep 2016 12:01:39 -0400 Subject: [PATCH] Update from local config --- aliases | 8 ++++++++ bash/extras.sh | 2 ++ colors | 14 ++++++++++++++ zsh/prompt.zsh | 1 + zshrc | 4 +++- 5 files changed, 28 insertions(+), 1 deletion(-) diff --git a/aliases b/aliases index afc403b..f949a59 100644 --- a/aliases +++ b/aliases @@ -39,3 +39,11 @@ alias sz='source ~/.zshrc' # Hiding and showing files in Finder alias shf="defaults write com.apple.finder AppleShowAllFiles -bool true && killall Finder" alias hhf="defaults write com.apple.finder AppleShowAllFiles -bool false && killall Finder" + +## npm: list globally-installed packages +alias nlg="npm list -g --depth=0" + +## elm +alias em="elm-make" +alias er="elm-reactor" +alias ep="elm-package" diff --git a/bash/extras.sh b/bash/extras.sh index 198e7dc..c33c03b 100644 --- a/bash/extras.sh +++ b/bash/extras.sh @@ -1,3 +1,5 @@ [ -f /etc/bash_completion ] && source /etc/bash_completion test -e ${HOME}/.iterm2_shell_integration.bash && source ${HOME}/.iterm2_shell_integration.bash + +~/.rbenv/completions/rbenv.bash diff --git a/colors b/colors index 05983ed..a4a33af 100644 --- a/colors +++ b/colors @@ -8,3 +8,17 @@ if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/n elif infocmp xterm-256color >/dev/null 2>&1; then export TERM='xterm-256color'; fi; + +# Colorized man pages +# https://gist.github.com/cocoalabs/2fb7dc2199b0d4bf160364b8e557eb66#gistcomment-1850830 +man() { + LESS_TERMCAP_mb=$'\e'"[1;31m" \ + LESS_TERMCAP_md=$'\e'"[1;31m" \ + LESS_TERMCAP_me=$'\e'"[0m" \ + LESS_TERMCAP_se=$'\e'"[0m" \ + LESS_TERMCAP_so=$'\e'"[1;44;33m" \ + LESS_TERMCAP_ue=$'\e'"[0m" \ + LESS_TERMCAP_us=$'\e'"[1;32m" \ + command man "$@" +} + diff --git a/zsh/prompt.zsh b/zsh/prompt.zsh index 7851e81..6340b6e 100644 --- a/zsh/prompt.zsh +++ b/zsh/prompt.zsh @@ -1,3 +1,4 @@ +# https://www.npmjs.com/package/pure-prompt autoload -U promptinit && promptinit PURE_PROMPT_SYMBOL=${PROMPT_CHARACTER} diff --git a/zshrc b/zshrc index 7558ed1..e05dc7a 100644 --- a/zshrc +++ b/zshrc @@ -1,4 +1,6 @@ -source ~/.config/env +source $XDG_CONFIG_HOME/local +source $XDG_CONFIG_HOME/env + source $XDG_CONFIG_HOME/aliases source $XDG_CONFIG_HOME/colors source $XDG_CONFIG_HOME/extras