
Research
/Security News
9 Malicious NuGet Packages Deliver Time-Delayed Destructive Payloads
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.
filthy-prompt
Advanced tools
A disgustingly clean ZSH prompt

Based on the great pure theme by @sindresorhus and @mafredri, but with a few notable changes.
git-root when in a repository.${ZDOTDIR:-$HOME}/.promptmsg. The message is automagically cleared once shown.Can be installed with npm or manually. Requires git 1.7.10+ and ZSH 4.3.17+.
(To show current tag/commit when head is detached, git 2.0.0+ is required. Otherwise it just shows 'no branch')
npm install --global filthy-prompt
That's it. Skip to Getting started.
zulu install filthy
zulu theme filthy
filthy.zshfilthy.zsh to somewhere in $fpath with the name prompt_filthy_setup.$ ln -s "$PWD/filthy.zsh" /usr/local/share/zsh/site-functions/prompt_filthy_setup
Run echo $fpath to see possible locations.
For a user-specific installation (which would not require escalated privileges), simply add a directory to $fpath for that user:
# .zshenv or .zshrc
fpath=( "$HOME/.zfunctions" $fpath )
Then install the theme there:
$ ln -s "$PWD/filthy.zsh" "$HOME/.zfunctions/prompt_filthy_setup"
Initialize the prompt system (if not so already) and choose filthy:
# .zshrc
autoload -U promptinit && promptinit
prompt filthy
FILTHY_CMD_MAX_EXEC_TIMEThe max execution time of a process before its run time is shown when it exits. Defaults to 5 seconds.
FILTHY_SHOW_EXIT_CODE=1Prints a nice exit code in front of the prompt character when the previous
command exited with a status not equal to 0
FILTHY_SHOW_ZSH_VERSION=1Prints the current value of $ZSH_VERSION in $RPROMPT
FILTHY_ALWAYS_SHOW_FULL_PATH=1Do not show relative paths when $PWD is within a git repository
# .zshrc
autoload -U promptinit && promptinit
# optionally define some options
FILTHY_CMD_MAX_EXEC_TIME=10
prompt filthy
Base16 Ocean theme with the Nitti Light font (18pt) is a beautiful combination, as seen in the screenshot above. Just make sure you have anti-aliasing enabled in your Terminal.
To have commands colorized as seen in the screenshot install zsh-syntax-highlighting.
filthy.zsh to ~/.oh-my-zsh/custom/filthy.zsh-themeZSH_THEME="filthy" to your .zshrc file.Set zstyle ':prezto:module:prompt' theme 'filthy' in ~/.zpreztorc.
MIT © James Dinsdale
FAQs
A disgustingly clean ZSH prompt
We found that filthy-prompt demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.