From c711ce1dc896e5aaa7c8390d7f660fd33779f463 Mon Sep 17 00:00:00 2001 From: hellerve Date: Mon, 2 May 2016 19:43:36 +0200 Subject: [PATCH] added psh script --- .scripts/psh | 20 ++++++++++++++++++++ .vim/bundle/luna-vim | 1 + .vim/bundle/presenting.vim | 1 + .vim/bundle/zepto-vim | 2 +- zshrc | 1 + 5 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .scripts/psh create mode 160000 .vim/bundle/luna-vim create mode 160000 .vim/bundle/presenting.vim diff --git a/.scripts/psh b/.scripts/psh new file mode 100644 index 0000000..db5e5e1 --- /dev/null +++ b/.scripts/psh @@ -0,0 +1,20 @@ +#!/usr/bin/perl + +print "Hi. This is a perl prompt.\n"; +print "Type a Perl expression to be evaluated here\n"; +print "or exit using \"exit\" or Ctrl-C.\n\n"; + +sub get_line { + $| = print "> "; + readline(); +} + +while (defined($line = get_line())) { + chomp $line; + if ($line eq "exit") { + print "Bye for now!\n"; + exit; + } + my $result = eval $line; + print "=> $result\n"; +} diff --git a/.vim/bundle/luna-vim b/.vim/bundle/luna-vim new file mode 160000 index 0000000..5309c11 --- /dev/null +++ b/.vim/bundle/luna-vim @@ -0,0 +1 @@ +Subproject commit 5309c116161f2caa02bb2d0b5d539e7a9ee0b760 diff --git a/.vim/bundle/presenting.vim b/.vim/bundle/presenting.vim new file mode 160000 index 0000000..8449629 --- /dev/null +++ b/.vim/bundle/presenting.vim @@ -0,0 +1 @@ +Subproject commit 844962946097810797c606871b0b310ee774348b diff --git a/.vim/bundle/zepto-vim b/.vim/bundle/zepto-vim index e0824e1..e246962 160000 --- a/.vim/bundle/zepto-vim +++ b/.vim/bundle/zepto-vim @@ -1 +1 @@ -Subproject commit e0824e19bbf75d4b2a31eabdfa7561498d35d0bc +Subproject commit e24696285ea5a1f67e9f79822a8518305ad73f1f diff --git a/zshrc b/zshrc index c6d60ff..8d8ab6f 100644 --- a/zshrc +++ b/zshrc @@ -34,6 +34,7 @@ alias dob="git branch --merged | grep -vE '(\*)|(master)|(dev)' | xargs -n 1 git alias vi="stty stop '' -ixoff ; vim" alias gcc="gcc-5" alias g++="g++-5" +alias psh="perl ~/.scripts/psh" alias push="git push" alias pull="git pull" alias zploc="find . -name '*zp' -exec grep -E -v \"((^[[:space:]]*$)|(^[[:space:]]*;.*$))\" {} \; | wc -l"