Skip to content

Commit

Permalink
fix aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
cnsworder committed Apr 25, 2017
1 parent 28d276c commit a0b7f3e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 7 deletions.
7 changes: 7 additions & 0 deletions aliases
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file is autogenerated by the aliases tool.
# For more info about aliases type `aliases --help`
# or visit https://github.com/sebglazebrook/aliases

---
lll:
command: "ls -l"
14 changes: 14 additions & 0 deletions sshrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
export VIMINIT="let \$MYVIMRC='$SSHHOME/.sshrc.d/vimrc' | source \$MYVIMRC"

if [ ! -d ~/.vim ]; then
mkdir ~/.vim
fi

vim_plugs=(init.vim plugs.vim conf.vim style.vim keymap.vim)

for plug in ${vim_plugs[@]}; do
if [ ! -f ~/.vim/${plug} ]; then
cp $SSHHOME/.sshrc.d/${plug} ~/.vim/${plug}
fi
done

16 changes: 9 additions & 7 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -62,26 +62,28 @@ zplug load

#[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

eval "$(direnv hook zsh)"
eval "$(aliases init --global)"
bindkey '^j' snippet-expand

function allup() {
clear
if which brew > /dev/null; then
echo ">> brew update application..."
yes | brew upgrade &> allup.log
brew cleanup &>> allup.log
yes | brew upgrade &> ~/allup.log
brew cleanup &>> ~/.aliasesallup.log
fi

echo ">> zplug update zsh..."
zplug update &>> allup.log
zplug clear &>> allup.log
zplug update &>> ~/allup.log
zplug clear &>> ~/allup.log

if which cask; then
echo ">> cask update emacs..."
if [ -d ~/.emacs.d ]; then
cd ~/.emacs.d
cask upgrade &>> allup.log
cask update &>> allup.log
cask upgrade &>> ~/allup.log
cask update &>> ~/callup.log
cd - > /dev/null
fi
fi
Expand All @@ -92,7 +94,7 @@ function allup() {
clear
fi

cat allup.log
cat ~/allup.log
echo
echo "[[ All plugin Upgraded! ]]"

Expand Down

0 comments on commit a0b7f3e

Please sign in to comment.