devops

  • fuzzy completion in bash

    • $ cat **<tab>

    • $ unset **<tab>

    • $ unalias **<tab>

    • $ export **<tab>

    • $ ssh **<tab>

    • $ kill -9 **<tab>

[!NOTE|label:references:]

fzf and vim

install

[!NOTE|label:references:]

fzf color themes
fzf color theme: gruvbox-marslo
NAME
VALUE

pointer

, , , , , , , ,

shortcuts

[!NOTE|label:references:]

KEYSTROKE
BASH FUNCTION
ZSH FUNCTION
ENVIRONMENT VARIABLE

CTRL-t

__fzf_select__

__fsel

FZF_CTRL_T_COMMAND

CTRL-r

__fzf_history__

fzf-history-widget

FZF_CTRL_R_OPTS

ALT-c

__fzf_cd__

fzf-cd-widget

FZF_ALT_C_COMMAND

action and select

OPEN
SELECT ALL
DESELECT ALL
TOGGLE ALL
MULTIPLE SELECT

ctrl + s

ctrl + d

ctrl + t

shift +

movement

PREVIOUS
NEXT
MULTIPLE SELECT

ctrl + k

ctrl + j

ctrl + p

ctrl + n

shift +

ctrl + k

ctrl + j

ctrl-t

[!TIP]

  • file list:

    PREVIOUS
    NEXT
    CHANGE PREVIEW WINDOWS

    ctrl + /

    ctrl + k

    ctrl + j

    ctrl + p

    ctrl + n

  • preview content:

    PREVIOUS
    NEXT

    shift +

    shift +

    ctrl +

    ctrl +

    ctrl + p

    ctrl + n

usage

[!NOTE|label:references:]

magic vim

[!TIP]

  • fdInRC

fzf magic vim
fzf vimrc

smart vimdiff

vimdiff

smart cat

smart cat

smart copy

smart copy

others

advanced usage

venv selector

chrome

man page

[!NOTE]

  • simple version

fzf man

git alias

[!TIP]

environment

  • export

  • unset

      • alternative:

  • or unset limited to environment list

    fzf for unset environment
  • print and copy

    [!NOTE|label:references:]

    • environ – user environment : ( man environ )

    penv

process

[!NOTE]

  • functions

    ps fzf
    kill ps fzf

kubectl

  • bip

  • bup

config

  • __fzf_history__

fzf ctrl-r

[!NOTE|label:references:]

  • to disable/reset osx default + and +

    • System SettingsKeyboardKeyboard Shutcuts...Mission Controlkeyboards ⇢ shortcuts

    • System SettingsDesktop & DockShortcuts...desktop & dock ⇢ Shortcuts

fzf ctrl-t

tips

fzf with git

[!NOTE|label:references:]

[!NOTE|label:references:]

  • install

  • from source

    [!NOTE]

    SHELL
    COMMAND

    bash

    fd --gen-completions bash

    fish

    fd --gen-completions fish

    zsh

    fd --gen-completions zsh

    elvsih

    fd --gen-completions elvish

    powershell

    fd --gen-completions powershell

  • verify

  • usage

advanced usage

rg the faster mg

[!NOTE]

  • install

usage

tips

  • show file name only

  • in vimgrep format

using inside in vim

[!NOTE|label:references:]

ag the faster mg

  • install

  • install

  • verify

[!NOTE|label:references:]

  • install

  • completion

  • verify

bat cat

usage

tips

  • manpages themes

  • script themes

config

theme

tldr

[!NOTE|label:references:]

install

config

  • rust version

    [!TIP|label:references:]

    • config file :

      • linux and bsd: $XDG_CONFIG_HOME/tlrc/config.toml or ~/.config/tlrc/config.toml if $XDG_CONFIG_HOME is unset

      • macos: ~/Library/Application Support/tlrc/config.toml

      • windows: %ROAMINGAPPDATA%\tlrc\config.toml

    • iMarslo: .tlrc.tomlexport TLRC_CONFIG="$HOME/.marslo/.tlrc.toml"

  • python version

cht.sh

[!NOTE]

.cht.sh.conf

[!NOTE|label:references:]

  • path: ~/.cht.sh/

  • file : ~/.cht.sh/cht.sh.conf

  • cht.sh configuration is stored in ~/.cht.sh/ (can be overridden with CHTSH env var.)

CHTSH environment

ENVIRONMENT VAIRABLE
VALUE

CHTSH_HOME

~/.cht.sh/

CHTSH_CONF

$CHTSH_HOME/cht.sh.conf

CHTSH_URL

https://cht.sh

CHTSH_MODE

$(cat "$CHTSH_HOME/mode 2>/dev/null")

CHTSH_CURL_OPTIONS

-

CHEATSH_INSTALLATION

$(cat "$CHTSH_HOME/standalone" 2>/dev/null)

CHEATSH_TEST_STANDALONE

YES/NO

CHEATSH_TEST_SKIP_ONLINE

YES/NO

CHEATSH_TEST_SHOW_DETAILS

YES/NO

theme

  • list themes

  • show themes

  • configure theme

  • themes

    • algol_nu

    • arduino

    • native

    • solarized-dark

    • stata-dark

mode

[!NOTE|label:references:]

  • path : ~/.cht.sh/mode

--shell

[!NOTE|label:references:]

cheat

[!NOTE|label:references:]

configure

  • reset cheatsheets repo

theme

  • arduino

  • github-dark

  • gruvbox

  • native

  • onedark

  • optional

    • doom-one

    • evergarden

    • lovelace

    • nord

    • solarized-dark256

    • vulcan

[!TIP]

ncdu

[!NOTE|label:Alternatives:]

theme and colors

[!TIP]

  • flags

bash color

[!NOTE|label:references:]

  • install

    ansi color tables

[!NOTE|label:references:]

utility

[!NOTE|label:references:]

elinks google.com

duf

[!NOTE|label:references:]

  • install

  • re-mapping cmd

  • usage

    enhancd

Last updated

Was this helpful?