These are a bunch of antigen/oh-my-zsh/prezto compatible shell scripts which make me productive on the commandline.
I use Prezto to manage zsh
; ergo this repository should work seamlessly with it, with close to no impact to shell load time.
Installing under Prezto
cd .zprezto
git submodule add https://github.com/srijanshetty/cli-goodies.git modules/cli-goodies
Add cli-goodies
to your .zpreztorc
file:
# Set the Prezto modules to load (browse modules).
# The order matters.
zstyle ':prezto:load' pmodule \
'environment' \
'terminal' \
'editor' \
'history' \
'directory' \
'spectrum' \
'utility' \
'completion' \
'prompt' \
'cli-goodies'
I haven't tried using cli-goodies
with oh-my-zsh
and I think the following should work in theory.
wget https://raw.github.com/srijanshetty/cli-goodies/master/init.zsh -O $HOME/.oh-my-zsh/custom/cli-goodies.zsh
Installing using Antigen
If you use Antigen, adding the following line to .zshrc
should load cli-goodies
.
antigen-bundle srijanshetty/zsh-dwim
Anyone running zsh
should only need to add the following line to their .zshrc
:
source init.zsh
- You'll need to install
peru
to get the completions working. Peru is a simple file downloader with a declarative syntax. Whilecurl
could be used to accomplish the same,peru
is simpler to read.
pip install peru
peru sync
__ __ _
_________ ____ ___ ____ / /__ / /_(_)___ ____ _____
/ ___/ __ \/ __ `__ \/ __ \/ / _ \/ __/ / __ \/ __ \/ ___/
/ /__/ /_/ / / / / / / /_/ / / __/ /_/ / /_/ / / / (__ )
\___/\____/_/ /_/ /_/ .___/_/\___/\__/_/\____/_/ /_/____/
/_/
Completions for a bunch of commands collected in one place
___ ___
_____/ (_) ____ _____ ____ ____/ (_)__ _____
/ ___/ / /_____/ __ `/ __ \/ __ \/ __ / / _ \/ ___/
/ /__/ / /_____/ /_/ / /_/ / /_/ / /_/ / / __(__ )
\___/_/_/ \__, /\____/\____/\__,_/_/\___/____/
/____/
- cron-wallpaper: Change wallpapers using cron.
- dnd: DND mode for Elementary OS.
- folder2md: Convert a directory tree to markdown.
- offline: Stores commands when offline and execute later in batch.
- pastebin: Create a pastie using sprunge.us
- proxy: Enable/disable proxy settings.
- repos: Helper for myrepos.
- sdp: scp for directories.
- showtoiletfonts: Show available toilet fonts.
- stats-cli: Compute avg, sd, min, max from a list.
- transfer: Use transfer.sh to transfer files from the CLI.
- There are two loaders init.plugin.zsh and init.zsh. This is to make sure that the module works with all the plugin loaders out there. The former in addition to loading the latter also loads up all the autoloadable functions.