Skip to content

Instantly share code, notes, and snippets.

@rupeshtr78
Last active November 4, 2020 01:30
Show Gist options
  • Save rupeshtr78/f9eb10b603cc7dbb6ae0bd6c0883dd89 to your computer and use it in GitHub Desktop.
Save rupeshtr78/f9eb10b603cc7dbb6ae0bd6c0883dd89 to your computer and use it in GitHub Desktop.
cmderr=cd /d "%CMDER_ROOT%"
cdesk=cd /d C:\Users\rupes\Desktop
cdown=cd /d C:\Users\rupes\Downloads
cml=cd /d C:\Users\rupes\Desktop\ML\AllMaterials
rgx=rg -i -l -e $1 -t $2 -g "!{sbt,cache}" | fzf --preview="bat {} --color=always --theme=GitHub" --bind "enter:execute(vim -no {})+abort"
rgc=rg -i -l -e $1 -t $2 -g "!{sbt,cache}" | fzf --preview="bat {} --color=always --theme=GitHub" --bind "enter:execute(clip < {})+abort"
rgf=rg --files -g "!{sbt,cache,target,out,build,.git,resources}"| fzf --height 50% --reverse --preview "bat {}" -bind "enter:execute(vim -no {})+abort"
fx=fzf --preview="bat {} --color=always" --bind "enter:execute(vim -no {})"
hf=cat "%CMDER_ROOT%\config\.history" | fzf -i --reverse --height=25% --select-1 | clip
fcx=fd -t d .| fzf -i --reverse --height=25% --bind "enter:execute(xargs -0 explorer {})"
fcd=fd -t d .| fzf -i --reverse --height=25% | clip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment