mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
36 lines
No EOL
703 B
Bash
36 lines
No EOL
703 B
Bash
## smart urls
|
|
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 LC_CTYPE=en_US.UTF-8
|
|
|
|
## 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 .'
|
|
|
|
## 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' |