我正在使用命令行工具pwgen
来生成密码,因为我喜欢使用sha1
命令行标志获得的可重复性。引用手册页:
-H, --sha1=/path/to/file[#seed]
Will use the sha1's hash of given file and the optional seed to
create password. It will allow you to compute the same password
later, if you remember the file, seed, and pwgen's options used.
ie: pwgen -H ~/your_favorite.mp3#your@email.com gives a list of
possibles passwords for your pop3 account, and you can ask this
list again and again.
WARNING: The passwords generated using this option are not very
random. If you use this …
Run Code Online (Sandbox Code Playgroud) 我已经开始制作自己的oh-my-zsh
主题,但遇到了一些问题。我正在尝试根据分支的名称更改 git 输出的颜色,除了一个重要的警告外,它工作得很好:它在启动时将颜色更改为正确的颜色zsh
,但从不重新评估颜色应该是什么除非我重新启动zsh
。
这是实际问题的屏幕截图:
我是否做错了什么,或者oh-my-zsh
是否zsh
支持这种事情?