mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Add encrypt/decrypt.
This commit is contained in:
parent
fee5b95415
commit
57af129fc7
1 changed files with 9 additions and 13 deletions
22
lib/misc.zsh
22
lib/misc.zsh
|
|
@ -17,16 +17,14 @@ export LC_CTYPE=en_US.UTF-8
|
|||
function pman() {
|
||||
man $1 -t | open -f -a Preview
|
||||
}
|
||||
|
||||
#
|
||||
## pretty JSON
|
||||
function pj() {
|
||||
python -mjson.tool
|
||||
}
|
||||
|
||||
## curl JSON
|
||||
function cj() {
|
||||
curl -sS $@ | pj
|
||||
}
|
||||
|
||||
|
||||
|
||||
## Open current directory
|
||||
alias oo='open .'
|
||||
|
|
@ -51,12 +49,10 @@ alias history='fc -l 1'
|
|||
export GREP_OPTIONS='--color=auto'
|
||||
export GREP_COLOR='1;32'
|
||||
|
||||
# What the hell did I do the other day?
|
||||
function whatthehelldididoon() {
|
||||
for repo in `find . -name '.hg'`
|
||||
do
|
||||
echo $repo
|
||||
hg .. -R $repo/.. -d "$1" -u 'Steve Losh'
|
||||
done
|
||||
# Quick and dirty encryption
|
||||
function encrypt() {
|
||||
openssl des3 -a -in $1 -out $1.des3
|
||||
}
|
||||
function decrypt() {
|
||||
openssl des3 -d -a -in $1 -out ${1%.des3}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue