nixers
Scripts to be "quick and efficient" - Printable Version
+- nixers (https://nixers.net)
+-- Forum: Operating Systems & Administration (https://nixers.net/Forum-Operating-Systems-Administration)
+--- Forum: Servers Administration, Networking, & Virtualization (https://nixers.net/Forum-Servers-Administration-Networking-Virtualization)
+--- Thread: Scripts to be "quick and efficient" (/Thread-Scripts-to-be-quick-and-efficient)
Pages: 1 2


RE: Scripts to be "quick and efficient" - dany74q - 23-06-2021

I use various tools which were listed here & in the modern-unix repo.

As per being efficient & quick - for me at least, the bigger chunk of the pareto rule falls on having a consistent keyboard-driven experience across all the tools I use daily:

General text editing:
- I use Emacs + evil everywhere (w/ a 400~ line literate config for Doom[1], which works pretty well for me)
- For lighter weight files, I use vim (I have spacevim[2] installed & slightly configured)

Coding:
- Having IdeaVim[3] installed in any jetbrains product (Golang for me, currently)
- Firing up ipython (aliased 'ipy') w/ vim bindings ('--TerminalInteractiveShell.editing_mode=vi')

Web browsing:
- Depending on the content (the # of ads per page, or the the amount of front-end code) - I might browse within emacs in eww[4] or qutebrowser[5]
- In any case, I always have vimium[6] or an equivalent plugin in all my browsers
- wasavi[7] (turns html text-areas to a vim editor) is also great for any chromium browser; that or emacs-anywhere[8] / vim-anywhere[9]

Remote shells:
- Running 'set -o vi' in every SSH session (I have an alias w/ '-t bash -o vi')
- Tramp in emacs

Local shell:
- zsh w/ vim bindings ('bindkey -v'), and the following terrific plugins:
- zsh-syntax-highlighting [10]
- zsh-autosuggestions [11]
- I use tmux (w/ vim bindings) pretty heavily, w/ the following great plugins:
- extrakto[12] - smart extraction / auto completion in tmux
- tmux-open[13] - run 'open' on a tmux selection
- tmux-copycat[14] - smart searches & selections for tmux
- Aliasing common commands to one-letter shortcuts (c -> clear, g -> git, k -> kubectl, j -> go-jira[15])
- I do use some of the modern-unix (or similar) tools locally, namely:
- ripgrep[16] - faster grep
- bat[17] - colorful cat
- exa[18] - ls alternative
- prettyping[19] - ping alternative
- ncdu[20] - curses wrapper for du
- z[21] - smarter directory navigation
- hexyl[22] - hexdump alternative
- fzf[23] - fuzzy finder
- tldr[24] - community driven cheatsheets
- peco[25] - interactive filtering tool
- jq[26] - json processing
- jo[27] - json construction
- glances[28] - top replacement


Next for productivity would be minimizing context-switches, or, consolidating workflows to a minimal set of applications in which I orient myself well.

I use emacs as a:
- Daily planner, via org-agenda[29]
- Journal, via org-journal[30]
- Personal kb, via org-roam[31]
- Time tracker, via org-mode + org-pomodoro[32]
- RSS reader, via elfeed[33]
- At times, as a git interface, via magit[34]

For work, I use the following cli tools which help me minimize context switches to a web browser, or to speed up some tasks:
- gh[35] - The official github cli
- go-jira[15] - A great jira cli
- pgcli[36] - Postgres cli (supports vim bindings)

[1] https://github.com/hlissner/doom-emacs
[2] https://spacevim.org/
[3] https://github.com/JetBrains/ideavim
[4] https://www.gnu.org/software/emacs/manual/html_mono/eww.html
[5] https://qutebrowser.org/
[6] https://github.com/philc/vimium
[7] https://github.com/akahuku/wasavi
[8] https://github.com/zachcurry/emacs-anywhere
[9] https://github.com/cknadler/vim-anywhere
[10] https://github.com/zsh-users/zsh-syntax-highlighting
[11] https://github.com/zsh-users/zsh-autosuggestions
[12] https://github.com/laktak/extrakto
[13] https://github.com/tmux-plugins/tmux-open
[14] https://github.com/tmux-plugins/tmux-copycat
[15] https://github.com/go-jira/jira
[16] https://github.com/BurntSushi/ripgrep
[17] https://github.com/sharkdp/bat
[18] https://github.com/ogham/exa
[19] https://github.com/denilsonsa/prettyping
[20] https://github.com/rofl0r/ncdu
[21] https://github.com/rupa/z
[22] https://github.com/sharkdp/hexyl
[23] https://github.com/junegunn/fzf
[24] https://github.com/tldr-pages/tldr
[25] https://github.com/peco/peco
[26] https://github.com/stedolan/jq
[27] https://github.com/jpmens/jo
[28] https://github.com/nicolargo/glances
[29] http://web.mit.edu/Emacs/source/emacs/lisp/org/org-agenda.el
[30] https://github.com/bastibe/org-journal
[31] https://github.com/org-roam/org-roam
[32] https://github.com/marcinkoziej/org-pomodoro
[33] https://github.com/skeeto/elfeed
[34] https://github.com/magit/magit
[35] https://github.com/cli/cli
[36] https://github.com/dbcli/pgcli