From 06242df743e15320ded9f3a6e4c99c3f6be1af79 Mon Sep 17 00:00:00 2001 From: nyuszika7h Date: Tue, 24 Apr 2012 16:43:19 +0200 Subject: [PATCH] Fix commit 04920736d9d931f63a11946bcae95341e5a83ab5 --- bashrc | 14 +++++++++----- zshrc | 14 +++++++++----- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/bashrc b/bashrc index 6ad9fc61..8cf5a7d2 100644 --- a/bashrc +++ b/bashrc @@ -416,8 +416,7 @@ function mkcd() { if [[ $# -gt 1 ]]; then echo 'Warning: All directories will be created, but will change to first specified directory.' 1>&2 fi - mkdir -p "$*" - cd "$1" + mkdir -p "$*" && cd "$1" } function gribble-gpg-everify() { @@ -425,9 +424,14 @@ function gribble-gpg-everify() { # probably want to use gpg2 here. local gpg=gpg2 - read -r -i 'Enter Bitcoin OTC URL: ' REPLY - echo -n ';;everify ' - lynx -hiddenlinks=ignore -dump $REPLY | $gpg --decrypt + echo -n 'Enter Bitcoin OTC URL: ' + read REPLY + lynx -hiddenlinks=ignore -dump $REPLY > bitcoin_otc.txt.asc + $gpg --decrypt-file bitcoin_otc.txt.asc + echo -en '\e[1;32m;;everify ' + cat bitcoin_otc.txt + echo -e '\e[0m' + rm -rf bitcoin_otc.txt bitcoin_otc.txt.asc } ##### Tmux (example) 4G2W9C ##### diff --git a/zshrc b/zshrc index 11b630dc..f6fdda34 100644 --- a/zshrc +++ b/zshrc @@ -361,8 +361,7 @@ function mkcd() { if [[ $# -gt 1 ]]; then echo 'Warning: All directories will be created, but will change to first specified directory.' 1>&2 fi - mkdir -p "$*" - cd "$1" + mkdir -p "$*" && cd "$1" } function gribble-gpg-everify() { @@ -370,9 +369,14 @@ function gribble-gpg-everify() { # probably want to use gpg2 here. local gpg=gpg2 - read -r -i 'Enter Bitcoin OTC URL: ' REPLY - echo -n ';;everify ' - lynx -hiddenlinks=ignore -dump $REPLY | $gpg --decrypt + echo -n 'Enter Bitcoin OTC URL: ' + read REPLY + lynx -hiddenlinks=ignore -dump $REPLY > bitcoin_otc.txt.asc + $gpg --decrypt-file bitcoin_otc.txt.asc + echo -en '\e[1;32m;;everify ' + cat bitcoin_otc.txt + echo -e '\e[0m' + rm -rf bitcoin_otc.txt bitcoin_otc.txt.asc } ##### Tmux (example) 4G2W9C #####