I. Theme
prompt='%{$fg [blue]%}[%d%*]${pr_rst}%{$fg [red]%}>%{$fg [yellow]%}>%{$fg [Green]%}>${pr_rst }%{$purple%}%n${pr_rst} at %{$orange%}iwm-yyz${pr_rst} in%{$limegreen%}%~${pr_rst} $vcs _info_msg_0_$ ( Virtualenv_info)'
Second, the terminal tools
# IP Query I () Curl ip.cn/$1# Ctrl+Q return Upper Cdlast () {CD-ls-lrth--color=auto |Tail Zle Reset-Prompt}zle-N Cdlastbindkey'^q'cdlast# Timestamp Conversion ds () Date-D @$1 "+%y-%m-%d%h:%m:%s"SD () Date-D" $"+%s# Youdao Translator Fanyi () {Word= ' echo $ '1| Tr-d'\ n'| Xxd-plain | Sed's/\ (.. \)/%\1/g'' Result=$ (curl-s"http://fanyi.youdao.com/openapi.do?keyfrom=codervar&key=802458398&type=data&doctype=json& version=1.1&q= $word") echo"\033[31m "Search": \033[0m\c"Echo $result| Awk-f'Query ":' '{print $ (2)}'| Awk-f',' '{print $}'Echo"\033[33m "Interpretation": \033[0m\c"Echo $result| Awk-f':' '{print $ (2)}'| Awk-f',' '{print $}'Echo"\033[36m "description": \033[0m\c"Echo $result| Awk-f'explains ":' '{print $ (2)}'| Awk-f'}' '{print $}'}
Talk: Customizing gadgets