Skip to content

Instantly share code, notes, and snippets.

@agfung
agfung / .zimrc
Last active December 27, 2024 20:50
## https://zimfw.sh/docs/modules/
# Behaviour
zmodule completion # Enables and configures smart and extensive tab completion.
zmodule environment # Sets generic Zsh built-in environment options.
zmodule input # Applies correct bindkeys for input events.
zmodule run-help # Figures out where to get the best help, and gets it.
# Productivity
zmodule asdf # Sets up asdf, with auto install and optimized usage of the direnv plugin.
zmodule direnv # Sets up the direnv Zsh shell integration
nmap g] :action GotoImplementation<CR> # https://stackoverflow.com/a/40648470
@agfung
agfung / Packages
Last active November 29, 2023 21:10
# shell
fzf
moreutils
mosh
ncdu
neovim
nerd-fonts-complete-starship
progress
pwgen
ranger
-- bootstrap lazy.nvim, LazyVim and your plugins
require("config.lazy")
vim.g.copilot_assume_mapped = true
vim.api.nvim_set_keymap("i", "<a-enter>", 'copilot#Accept("<CR>")', { expr = true, silent = true })
vim.api.nvim_set_keymap("i", "<a-[>", "copilot#Previous()", { expr = true, silent = true })
vim.api.nvim_set_keymap("i", "<a-]>", "copilot#Next()", { expr = true, silent = true })
vim.g.minipairs_disable = true
vim.g.clipboard = {
set keymap vi
set editing-mode vi
@agfung
agfung / .ssh\config
Last active December 28, 2024 04:16
Compression yes
StrictHostKeyChecking no
CheckHostIP no
UserKnownHostsFile /dev/null
PubkeyAcceptedAlgorithms +ssh-rsa
HostkeyAlgorithms +ssh-rsa
Host *
" user interface
set noerrorbells
set visualbell
set background=dark
" search
set hlsearch
set ignorecase
set incsearch
set smartcase
# prefix + I to install, prefix + U to update
set -g @tpm_plugins ' \
tmux-plugins/tpm \
tmux-plugins/tmux-sensible \
tmux-plugins/tmux-yank \
jimeh/tmux-themepack \
'
# so ESC works in a timely manner for vim, but non-zero to allow meta keys
# https://github.com/tmux/tmux/issues/907
[log]
date = rfc-local
[push]
default = simple
[core]
pager = less -FX -x2
excludesfile = ~/.gitignore