This commit is contained in:
Austen Adler 2015-12-08 18:26:30 -05:00
parent 317eb18147
commit 391352ba57

View File

@ -1,4 +1,4 @@
echo -ne '[ ]\r'
echo -ne '[ ]\r'
export HISTFILE=$HOME/.zsh_history
for config (~/.zsh/*.zsh) source $config
ZSH_THEME="af-magic"
@ -38,13 +38,18 @@ alias la='ls -A'
alias l='ls -CF'
alias logout='sudo pkill -u $USER'
function rsh(){
if [ -z $1 ] ; then
echo "Valid hostnames:"
cat /home/stonewareslord/syncthing/shared/ips
return 1
fi
ADDR=$(cat /home/stonewareslord/syncthing/shared/ips | sed -rne "s/^$1: //p")
if [ -z $ADDR ] ; then
echo "Hostname not found"
return 1
return 2
fi
echo "SSH to $ADDR..."
tsh $ADDR
tsh $ADDR $*
}
function fixsh(){
sed -i -e $1"d" ~/.ssh/known_hosts
@ -286,21 +291,32 @@ function k(){
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# To resize,
# :%S/\[([# ]{9})\]/[\1 ]
echo -ne '[# ]\r'
antigen bundle Schnouki/git-annex-zsh-completion
echo -ne '[## ]\r'
####echo -ne '[# ]\r'
####antigen bundle Schnouki/git-annex-zsh-completion
###echo -ne '[## ]\r'
###antigen bundle stonewareslord/omg
###echo -ne '[### ]\r'
###antigen theme stonewareslord/oh-my-git-themes af-magic
###echo -ne '[#### ]\r'
###antigen bundle stonewareslord/lpr
####echo -ne '[##### ]\r'
####antigen bundle zsh-users/zsh-completions src
####echo -ne '[###### ]\r'
####antigen bundle sharat87/autoenv
###echo -ne '[####### ]\r'
###antigen bundle zsh-users/zsh-syntax-highlighting
###echo -ne '[######## ]\r'
###antigen apply
###echo -ne '[#########]\r'
echo -ne '[# ]\r'
antigen bundle stonewareslord/omg
echo -ne '[### ]\r'
echo -ne '[## ]\r'
antigen theme stonewareslord/oh-my-git-themes af-magic
echo -ne '[#### ]\r'
echo -ne '[### ]\r'
antigen bundle stonewareslord/lpr
echo -ne '[##### ]\r'
antigen bundle zsh-users/zsh-completions src
echo -ne '[###### ]\r'
antigen bundle sharat87/autoenv
echo -ne '[####### ]\r'
echo -ne '[#### ]\r'
antigen bundle zsh-users/zsh-syntax-highlighting
echo -ne '[######## ]\r'
echo -ne '[##### ]\r'
antigen apply
echo -ne '[#########]\r'
echo -ne '[######]\r'
echo