主页

索引

模块索引

搜索页面

其他命令临时地

pycopy & pbpaste

使用:

// mac 自带命令
pbcopy < ~/.ssh/id_rsa.pub
grep "<keyword>" | pbcopy

备注

这个命令好用,比 linux 下此命令好用。可以完美与 gui 接合

网速

其他

  • 摘自: https://medium.com/swlh/my-favorite-cli-tools-c2fa484cee52

  • mac 工具:
  • docker 工具
  • 小工具
  • 配置信息:

    https://obihann.github.io/archey-osx/
    使用:
    > welcome
                 ###                  User: zhaoweiguo
               ####                   Hostname: zhaowgMac
               ###                    Distro: OS X 11.0.1
       #######    #######             Kernel: Darwin
     ######################           Uptime: 19 days
    #####################             Shell: /bin/zsh
    ####################              Terminal: xterm iTerm.app
    ####################              CPU: Intel Core i9-9880H CPU @ 2.30GHz
    #####################             Memory: 32 GB
     ######################           Disk: 16%
      ####################            Battery: 81.54%%
        ################              IP Address: 60.247.104.73
         ####     #####
    
  • FIGlet: http://www.figlet.org/

    $ brew install figlet
    $ printf "\e[92m" && figlet -f standard "Terminal Tips"
    $ printf "\e[95m" && figlet -f standard "Terminal Tips"
    $ printf "\e[31;3m" && figlet -f standard "Terminal Tips"
    
    Fonts:
    $ printf "\e[96m" && figlet -f starwars "Terminal Tips"
    // 参考实例: http://www.figlet.org/examples.html
    
  • Colors:

    $ for code in {30..37}; do \
    echo -en "\e[${code}m"'\\e['"$code"'m'"\e[0m"; \
    echo -en "  \e[$code;1m"'\\e['"$code"';1m'"\e[0m"; \
    echo -en "  \e[$code;3m"'\\e['"$code"';3m'"\e[0m"; \
    echo -en "  \e[$code;4m"'\\e['"$code"';4m'"\e[0m"; \
    echo -e "  \e[$((code+60))m"'\\e['"$((code+60))"'m'"\e[0m"; \
    done
    
  • Weather reports on your terminal:

    $ curl wttr.in/CityName
    $ curl wttr.in/Beijing
    帮助:
    $ curl wttr.in/:help
    
    alias:
    # weather
    alias we='curl wttr.in\?0nqF'
    alias we1='curl wttr.in\?1nqF'
    alias we2='curl wttr.in\?2nqF'
    alias weather='curl wttr.in\?nqF'
    
https://img.zhaoweiguo.com/knowledge/images/linuxs/linux_command_advance_weather.png

主页

索引

模块索引

搜索页面