dotfiles
pyxargs
dotfiles | pyxargs | |
---|---|---|
1 | 4 | |
0 | 4 | |
- | - | |
8.4 | 8.6 | |
14 days ago | about 2 months ago | |
Vim Script | Python | |
- | GNU General Public License v3.0 only |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
dotfiles
-
Ask HN: Share a shell script you like
- quickly jump to recent directory: https://github.com/rupa/z - however I find it kinda annoying it seems to forget/ignore(?) directories, anyone know of a better version of this?
- quickly opening my personal wiki: https://github.com/francium/dotfiles/blob/master/bin/.local/...
- re-run a script when a file changes: https://github.com/francium/dotfiles/blob/master/bin/.local/...
For `while-watchdo` you, you run it like `while-watchdo "echo hi"`, then in my editor, I have a custom shortcut that does `touch .watchfile` causing the command, in this case `echo hi` to run. I prefer this to tools that retrigger commands as soon as you save _any_ file. Also works in docker containers, edit a file on host, command runs in a container.
pyxargs
-
Modern Linux Tools vs. Unix Classics: Which Would I Choose?
> I too can never remember jq syntax when I need to. I usually just end up writing a Python script
Same here! That's why for small things I made pyxargs [1] to use python in the shell. In another thread I also just learned of pyp [2] which I haven't tried yet but looks like it'd be even better for this use case.
[1] https://github.com/elesiuta/pyxargs
[2] https://github.com/hauntsaninja/pyp
-
Alternative Shells
I personally use fish, but mostly for the out of the box auto completions and highlighting, I don't use it for actual scripting, nor have it set as the login shell due to the 2nd reason you mentioned.
I mostly use python as well, and for some short commands I made pyxargs [1] which lets you run python code on stdin, or a walk of your current directory.
[1] https://github.com/elesiuta/pyxargs
-
Ask HN: Share a shell script you like
pyxargs --py "print('{}') if os.path.ismount('{}') else ''" | pyxargs fusermount -u {}
My primary use case was using this with ffmpeg due to the encoding problem with xargs [2].
It can also run commands in parallel using a terminal multiplexer so outputs don't get mixed up or if they require user input.
[1] https://github.com/elesiuta/pyxargs
- Show HN: Clamshell- an experimental Python based shell
What are some alternatives?
fuz - Fuzzy search text / notes in the terminal, for any collection of text files
dotfiles - dotfiles for vim, git, zsh, tmux, cwm, xinit, and many others.
spellbook - 🪄 Shell and Powershell scripts registry
atuin - ✨ Magical shell history
pyp - Easily run Python at the shell! Magical, but never mysterious.
stderred - stderr in red
gron - Make JSON greppable!
bf.jq - Brainfuck interpreter written in jq -- This is the proof that jq is turing-complete!
swift-sh - Easily script with third-party Swift dependencies.