Fix commit 04920736d9d931f63a11946bcae95341e5a83ab5

This commit is contained in:
nyuszika7h 2012-04-24 16:43:19 +02:00 committed by Mika Suomalainen
parent 4377a3a494
commit 06242df743
2 changed files with 18 additions and 10 deletions

14
bashrc
View File

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

14
zshrc
View File

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