pheuter / dotfiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

dotfiles

Contains various configuration and init scripts that I use for local development

Additional

Homebrew

Package Description
fzf CLI fuzzy finder
bat Better cat
zsh-syntax-highlighting Like in fsh
neovim Vim-fork
direnv Dynamic env var loading
diff-so-fancy Better git diff
the_silver_searcher Grep for code search and fzf
rg Alternative to ag

rga is most accessible via the rga-fzf command, which will search the provided text in all compatible files, unlike fzf which will by default search for file names and not their contents. Keyboard shortcut in shell: Ctrl + f.

Install instructions:

# Install rust
> brew install rustup-init
> rustup-init

# Enable nightly toolchain
> rustup toolchain install nightly

# Install nightly version of rga
> cargo +nightly install --git https://github.com/phiresky/ripgrep-all.git

Vim shortcuts

Shortcut Description
ZZ Write current file, if modified, and quit
ZQ Quit without checking for changes
jk Escape from insert and terminal modes
ci' Change inside single quotes
ci{ Change inside braces
,z Bring up zsh terminal in split view
,p Run Prettier on buffer
,t Toggle tree viewer
,n Find current file in tree viewer
,f Ack in all subdirectories
m While selecting node in tree view to bring up menu
,,s Search for character
,,w Go to word
,osfu C# find usages
,osfi C# find implementations
,osca C# code actions
,os= C# code format
,osre C# restart server
gd C# go to definition
Ctrl + p Bring up fuzzy file finder
Ctrl + b Bring up fuzzy buffer finder
Ctrl + w , = Resize split evenly
Ctrl + w , Ctrl + r Swap split windows
:bd Delete buffer

Shell shortcuts

Shortcut Description
Ctrl + r Search command history
Ctrl + t Find file
Ctrl + f Search file contents in all subdirectories

About


Languages

Language:Vim Script 61.0%Language:Shell 39.0%