3 ms·
* fish - essential prerequisite in order to live in the command line * autojump (aka j) - for changing directories quickly * open - required to interact with
by ComputerGuru 8y ago
* fish - essential prerequisite in order to live in the command line
* autojump (aka j) - for changing directories quickly
* open - required to interact with the non-cli world, ships by default on macOS and here's one for Windows/WSL: https://github.com/neosmart/open https://github.com/neosmart/open
* imgpaste - for pasting screenshots into a PNG or JPEG directly (https://github.com/neosmart/imgpaste https://github.com/neosmart/imgpaste)
* pbpaste - for pasting into the shell (or if you're on Linux or Windows: https://github.com/mqudsi/fish-config/blob/master/functions/pbpaste.fish https://github.com/mqudsi/fish-config/blob/master/functions/...)
* fzf - a general-purpose "selector" ui for choosing "things" from a list based off, such as your history (bound to ctrl+r) or files in a directory (bound to ctrl+p with input generated by bfs or fd)
* neovim - my configuration here: https://github.com/mqudsi/nvim-config https://github.com/mqudsi/nvim-config
* ripgrep - for finding strings in files
* fd - for finding files quickly
* sed (with -r) - insanely powerful for common string operations
* tr - lets you deal with line endings, which sed can't
* youtube-dl - download youtube videos from the CLI
* curl/httpie - (scriptable) network requests
* aria2c - high-speed (multi-threaded) downloads and torrent downloads, it just works
* jq - for manipulating json in shell scripts
* ncdu - find space taken up by directories/files, but it's aging and in need of a dire rewrite like fd/rg did for find/grep
* pbedit - edit the contents of the clipboard in your favorite editor https://github.com/mqudsi/fish-config/blob/master/functions/pbpaste.fish https://github.com/mqudsi/fish-config/blob/master/functions/...
* weechat - irc in your command line
* ffmpeg - except I am much more likely to use it via one of the wrapper fish scripts I've written such as ffencode, fftrim, ffconcat, ffmute, etc. because it is (necessarily) so damn verbose and infinitely tunable.
* tmux - if I'm working remotely or on a headless machine where I can't just ctrl+shift+n to open a new terminal window (which I prefer)
- michaelmior 8y ago> tr - lets you deal with line endings, which sed can't I'm not sure what you mean by "deal with line endings", but sed can operate across multiple lines. https://www.gnu.org/software/sed/manual/html_node/Text-search-across-multiple-lines.html https://www.gnu.org/software/sed/manual/html_node/Text-searc...
- zzo38computer 8y agoMaybe is meant you can remove the carriage returns easily, in case you want only the line feed on the end of the line.
- ComputerGuru 8y agoI mean directly operating on the line ending itself. e.g. remove all lines or replace `\n` with the record separator, etc.
- jfhufl 8y agoLike so? % echo 'one\ntwo\nthree' | sed -e 's,$, four,' one four two four three four
- ComputerGuru 8y agoNo, like this: > echo ‘one\ntwo\nthree’ | tr \n \| one|two|three
- Tepix 8y agoecho -e 'one\ntwo\nthree' | sed -ze 's/\n/|/g'
- ComputerGuru 8y agoHey, thanks for teaching me that!
- haensi 8y ago* howdoi: stackoverflow from the shell: https://github.com/gleitz/howdoi https://github.com/gleitz/howdoi, don't leave you terminal while programming
- efreak 8y agoForget tr/sed, just use `perl -i.original -pe`
- ComputerGuru 8y agoOn bare-bones unixish systems, you’ll be more likely to find sed/tr than Perl (for me, a clean FreeBSD install).