From 008e1d864b5a5841a53eb3cba352e82ef064a29b Mon Sep 17 00:00:00 2001 From: Austen Adler Date: Sun, 28 Sep 2014 11:45:17 -0400 Subject: [PATCH] l --- scripts/desktop.txt | 1 + scripts/sync.sh | 3 +++ shells/Xresources | 2 +- shells/zshrc | 10 +++++----- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/scripts/desktop.txt b/scripts/desktop.txt index f1dca33..abffda4 100644 --- a/scripts/desktop.txt +++ b/scripts/desktop.txt @@ -68,3 +68,4 @@ pm-utils alsa-utils numlockx virtualbox +x11vnc diff --git a/scripts/sync.sh b/scripts/sync.sh index 7725125..025a220 100755 --- a/scripts/sync.sh +++ b/scripts/sync.sh @@ -71,6 +71,9 @@ while getopts ":hbsdtclw" VALUE "$@"; do if [ ! -f ~/.oh-my-zsh/oh-my-zsh.sh ] ; then curl -L http://install.ohmyz.sh | sh fi + if [ ! -d ~/.fzf ] ; then + git clone https://github.com/junegunn/fzf.git ~/.fzf + fi ln -s $ABSPATH/shells/zshrc ~/.zshrc ln -s $ABSPATH/shells/screenrc ~/.screenrc ln -s $ABSPATH/shells/Xresources ~/.Xresources diff --git a/shells/Xresources b/shells/Xresources index f934661..db80522 100644 --- a/shells/Xresources +++ b/shells/Xresources @@ -3,7 +3,7 @@ xterm*vt100*geometry: 80x60 xterm*saveLines: 16384 xterm*loginShell: true xterm*charClass: 33:48,35:48,37:48,43:48,45-47:48,64:48,95:48,126:48 -xterm*termName: xterm-color +xterm*termName: xterm-256color xterm*eightBitInput: false *VT100*Translations: #override \ diff --git a/shells/zshrc b/shells/zshrc index 6a46631..c00d677 100644 --- a/shells/zshrc +++ b/shells/zshrc @@ -82,17 +82,17 @@ alias vpn="cd ~/.openvpn;sudo openvpn config.ovpn;cd -" alias to="~/.todo/todo.sh" alias stdns="sudo sh -c 'echo \"nameserver 8.8.8.8\\nnameserver 8.8.4.4\" > /etc/resolv.conf'" alias fvim="vim -u NONE +\"so ~/.vim/bundle/flappyvird-vim/plugin/flappyvird.vim\" +\"so ~/.vim/bundle/flappyvird-vim/autoload/flappyvird.vim\" +\":FlappyVird\" +\":q\"" -alias fk='k `fzf +c --no-mouse -m -1 -x`' -alias fh='eval $(([ -n "$ZSH_NAME" ] && fc +c --no-mouse -m -1 -x -l 1 || history) | fzf +s | sed "s/ *[0-9]* *//")' -alias fkill='ps -ef | sed 1d | fzf +c --no-mouse -m -1 -x | awk "{print $2}" | xargs kill -${1:-9}' +alias fk='k `fzf --no-mouse -m -1 -x`' +alias fh='eval $(([ -n "$ZSH_NAME" ] && fc --no-mouse -m -1 -x -l 1 || history) | fzf +s | sed "s/ *[0-9]* *//")' +alias fkill='ps -ef | sed 1d | fzf --no-mouse -m -1 -x | awk "{print $2}" | xargs kill -${1:-9}' alias -s html="firefox" alias -s log="less -MN" -alias -g F='`fzf +c --no-mouse -m -1 -x`' +alias -g F='`fzf --no-mouse -m -1 -x`' alias -g nify=" > /dev/null 2>&1 &" alias -g nifyd=" > /dev/null 2>&1 & disown" alias -g G='|& egrep -i' alias -g AW='austenwares.com' -export FZF_COMPLETION_OPTS='+c --no-mouse -m -1 -x' +export FZF_COMPLETION_OPTS='--no-mouse -m -1 -x' function dnstest(){ echo "Testing ping:" ping -c 2 8.8.8.8