added scripts dir

This commit is contained in:
hellerve
2015-05-26 17:01:40 +02:00
parent ba8eef63a6
commit 547ae588af
4 changed files with 16 additions and 4 deletions

7
.scripts/dev-tmux Executable file
View File

@@ -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

3
.scripts/zeptosay.zp Normal file
View File

@@ -0,0 +1,3 @@
(load "ascii.zp")
(cowsay (string-substitute (string-substitute (fold (lambda (x y) (++ x y)) "" args) "\n" " ") " " " "))
""

View File

@@ -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

5
zshrc
View File

@@ -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