From 0aee2d024393a629206fb3016ab6412503bdb9d8 Mon Sep 17 00:00:00 2001 From: Nikolas Weger Date: Wed, 23 Aug 2017 12:20:14 +0200 Subject: [PATCH] added linuxbrew --- cfg/zsh/cfg.d/export.zsh | 11 +++++++---- cfg/zsh/cfg.d/source.d/alias-brew.zsh | 4 ++++ cfg/zsh/cfg.d/source.d/function-fzf.zsh | 4 ++-- 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 cfg/zsh/cfg.d/source.d/alias-brew.zsh diff --git a/cfg/zsh/cfg.d/export.zsh b/cfg/zsh/cfg.d/export.zsh index f820b1e..f62eccb 100644 --- a/cfg/zsh/cfg.d/export.zsh +++ b/cfg/zsh/cfg.d/export.zsh @@ -2,25 +2,28 @@ dotfls="${HOME}/dotfiles" dotlib="${dotfls}/lib" dotcfg="${dotfls}/cfg" +lbrew="/home/linuxbrew/.linuxbrew" # Paths path+=(${dotfls}/bin) path+=(${HOME}/.gem/ruby/2.4.0/bin) path+=(${HOME}/basher/bin) path+=(/opt/android-sdk/build-tools/26.0.1) -path+=(/home/linuxbrew/.linuxbrew/bin) -manpath+=(/home/linuxbrew/.linuxbrew/share/man) -infopath+=(/home/linuxbrew/.linuxbrew/share/info) +path+=(${lbrew}/bin) +path+=(${lbrew}/sbin) +manpath+=(${lbrew}/share/man) +infopath+=(${lbrew}/share/info) # Editor Setting EDITOR='nano' # Completions Paths fpath+=(${dotlib}/completions/src) +fpath+=(${lbrew}/share/zsh/site-functions) fpath+=(${dotlib}/local) # Actually export -export dotlib dotcfg PATH MANPATH INFOPATH EDITOR +export dotlib dotcfg lbrew PATH MANPATH INFOPATH EDITOR # Reload all Prompts autoload -U promptinit && promptinit diff --git a/cfg/zsh/cfg.d/source.d/alias-brew.zsh b/cfg/zsh/cfg.d/source.d/alias-brew.zsh new file mode 100644 index 0000000..5b58473 --- /dev/null +++ b/cfg/zsh/cfg.d/source.d/alias-brew.zsh @@ -0,0 +1,4 @@ +alias brews='brew list -1' +alias bubo='brew update && brew outdated' +alias bubc='brew upgrade && brew cleanup' +alias bubu='bubo && bubc' diff --git a/cfg/zsh/cfg.d/source.d/function-fzf.zsh b/cfg/zsh/cfg.d/source.d/function-fzf.zsh index 693fbae..0e8cda1 100644 --- a/cfg/zsh/cfg.d/source.d/function-fzf.zsh +++ b/cfg/zsh/cfg.d/source.d/function-fzf.zsh @@ -1,2 +1,2 @@ -[[ $- == *i* ]] && source "/usr/share/fzf/completion.zsh" 2> /dev/null -source "/usr/share/fzf/key-bindings.zsh" +[[ $- == *i* ]] && source "/home/linuxbrew/.linuxbrew/opt/fzf/shell/completion.zsh" 2> /dev/null +source "/home/linuxbrew/.linuxbrew/opt/fzf/shell/key-bindings.zsh"