| Functionality | Nyquase/vi-mode | laurenkt/zsh-vimto | ohmyzsh/ohmyzsh | sinetoami/vi-mode | softmoth/zsh-vim-mode | personal |
|---|---|---|---|---|---|---|
| vicmd: prefix search | j k |
|||||
| vicmd: edit-command-line | ^V |
v |
v |
^V, ^X^E |
:e |
|
| substring-search | ^k ^j |
^p ^n |
||||
| viins: up-/down-history | ^P ^N |
^P ^N |
^P ^N |
^P ^N |
^P ^N |
|
| viins: bind emacs keys | ^? ^a ^e ^h ^r ^U ^w |
^? ^h ^r |
^? ^a ^e ^h ^r ^w |
^? ^a ^e ^h ^r ^w |
^? ^a ^b ^e ^f ^k ^r ^s ^u ^w `^X |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _rbw.zsh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # terminal application launcher for sway, using fzf | |
| # Based on: https://gitlab.com/FlyingWombat/my-scripts/blob/master/sway-launcher | |
| shopt -s nullglob | |
| if [[ "$1" = 'describe' ]]; then | |
| shift | |
| if [[ $2 == 'command' ]]; then | |
| title=$1 | |
| readarray arr < <(whatis -l "$1" 2>/dev/null) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| MIT License | |
| Copyright (c) 2019 xPMo | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
The following is the ordered list of files Zsh will source for each shell type:
- L: Login
- I: Interactive
| Shell type: | LI | L_ | _I | __ |
|---|---|---|---|---|
| ~/.zshenv | ✓ | ✓ | ✓ | ✓ |
| ${ZDOTDIR:-$HOME}/.zprofile | ✓ | ✓ | ||
| ${ZDOTDIR:-$HOME}/.zshrc | ✓ | ✓ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| zip_and_transpose() { | |
| # for convenience, we zip our leading spaces (which provide the offset for diagonal cases) here | |
| # Using ^^ will wrap to previous entries until "argv" is exhausted (this is only useful in the first call) | |
| for s line (${spaces:^^argv}) | |
| s+=$line && # concatenate the spaces onto the start of the line | |
| for (( i=0 ; i++ < $#s; )) | |
| a[i]+=$s[i] | |
| } | |
| spaces=(+) # we need to declare this an an array from the start for the zip to work correctly |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @-moz-document url-prefix("file:///usr/share/doc/bash/bashref.html") { | |
| body { | |
| background: #002b36; | |
| color: #eee8d5; | |
| font-size: 1.2em; | |
| line-height: 1.4; | |
| max-width: 1200px; | |
| padding: 0.5em; | |
| margin: auto; | |
| } |
I have a fair amount of custom scripts, but I'm not a "do everything in the terminal" person. Instead, I prefer things like dunst(ify) actions and custom program wrappers. This customized, but not-so-terminal-centric workflow is what I want to highlight in my post.
i3
- focus/launch mode
- xfce4-appfinder
- rofi
- scratchpad
$mod+F1hint notifications
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <curl/curl.h> | |
| #include <stdio.h> | |
| #include <string.h> | |
| void usage(char * s) | |
| { | |
| fprintf(stderr, "Usage: %s <text> <url>\n", s); | |
| } | |
| int main(int argc, char ** argv) |
NewerOlder