mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-02 02:19:06 +01:00
Revert "merge"
This reverts commit5e8734bfd6, reversing changes made to7a41498b0d.
This commit is contained in:
parent
5e8734bfd6
commit
8b572a010d
26 changed files with 74 additions and 1300 deletions
44
lib/misc.zsh
44
lib/misc.zsh
|
|
@ -3,53 +3,11 @@ autoload -U url-quote-magic
|
|||
zle -N self-insert url-quote-magic
|
||||
|
||||
## file rename magick
|
||||
autoload -U zmv
|
||||
bindkey "^[m" copy-prev-shell-word
|
||||
|
||||
## jobs
|
||||
setopt long_list_jobs
|
||||
|
||||
## pager
|
||||
export PAGER='less -R'
|
||||
export PAGER=less
|
||||
export LC_CTYPE=$LANG
|
||||
|
||||
## pretty man pages
|
||||
function pman() {
|
||||
man $1 -t | open -f -a Preview
|
||||
}
|
||||
#
|
||||
## pretty JSON
|
||||
function pj() {
|
||||
python -mjson.tool
|
||||
}
|
||||
|
||||
## Open current directory
|
||||
alias oo='open .'
|
||||
|
||||
## Quick-look a file (^C to close)
|
||||
alias ql='qlmanage -p 2>/dev/null'
|
||||
|
||||
## Start a local SMTP server and dump emails sent to it to the console
|
||||
alias smtpconsole='python -m smtpd -n -c DebuggingServer localhost:1025'
|
||||
|
||||
## Serve the current folder on port 80
|
||||
alias serve_this='python -m SimpleHTTPServer'
|
||||
|
||||
## Highlight-aware less command
|
||||
alias hl='less -R'
|
||||
|
||||
## Show history
|
||||
alias history='fc -l 1'
|
||||
|
||||
## Color grep results
|
||||
## Examples: http://rubyurl.com/ZXv
|
||||
export GREP_OPTIONS='--color=auto'
|
||||
export GREP_COLOR='1;32'
|
||||
|
||||
# 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