diff --git a/.scripts/dev-tmux b/.scripts/dev-tmux new file mode 100755 index 0000000..e3c2a34 --- /dev/null +++ b/.scripts/dev-tmux @@ -0,0 +1,7 @@ +#!/bin/sh +tmux new-session -d +tmux split-window -h +tmux split-window +tmux new-window 'mutt' +tmux -2 attach-session -d +tmux select-pane -t 0 diff --git a/.scripts/zeptosay.zp b/.scripts/zeptosay.zp new file mode 100644 index 0000000..8b00477 --- /dev/null +++ b/.scripts/zeptosay.zp @@ -0,0 +1,3 @@ +(load "ascii.zp") +(cowsay (string-substitute (string-substitute (fold (lambda (x y) (++ x y)) "" args) "\n" " ") " " " ")) +"" diff --git a/Makefile b/Makefile index cd862f3..fae7e61 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -all:bash ghc git input python tmux valgrind vim zsh +all: bash ghc git input python scripty tmux valgrind vim zsh bash: cp bash_profile ~/.bash_profile @@ -17,6 +17,9 @@ input: python: cp pythonrc ~/.pythonrc +scripts: + cp .scripts ~/.scripts + tmux: cp dev-tmux ~/dev-tmux cp tmux.conf ~/.tmux.conf diff --git a/zshrc b/zshrc index cb11af6..1f5af64 100644 --- a/zshrc +++ b/zshrc @@ -204,7 +204,7 @@ save_dotfiles(){ local DOTPATH=~/Documents/Code/Github/.dotfiles/ cp ~/.bash_profile ${DOTPATH}bash_profile cp -r ~/.cabal/config ${DOTPATH}cabal/config - cp ~/dev-tmux ${DOTPATH}dev-tmux + cp -r ~/.scripts ${DOTPATH}.scripts cp ~/.ghci ${DOTPATH}ghci cp ~/.gitignore ${DOTPATH}gitignore cp ~/.gitconfig ${DOTPATH}gitconfig @@ -401,8 +401,7 @@ fi function zeptosay () { x=`fortune` - x="(begin (load \"ascii.scm\") (cowsay \"${(q)x}\"))" - zepto --single $x + zepto ~/.scripts/zeptosay.zp $x } fortune | cowsay