Skip to content

Instantly share code, notes, and snippets.

@agnoster
agnoster / README.md
Last active April 6, 2024 22:35
My ZSH Theme

agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

For Mac users, I highly recommend iTerm 2 + Solarized Dark

@slarwise
slarwise / init.vim
Last active June 12, 2023 10:01
Navigate vim splits in kitty terminal and other windows with the same skhd keybinds. Window manager yabai.
" The (neo)vim function that takes care of navigation within vim.
" Same concept as vim-tmux-navigator. If we navigate in the wanted
" direction and the winnr() hasn't changed, then we are at the edge
" and should forward the navigation to the window manager.
function! NvimYabaiNavigate(yabai_direction, vim_direction)
let win_nr_before = winnr()
execute("wincmd " . a:vim_direction)
if win_nr_before ==# winnr()
call system("yabai -m window --focus " . a:yabai_direction)
@jeetsukumaran
jeetsukumaran / Open New MacVim Buffer.scpt
Last active August 3, 2019 11:19
AppleScript to open a new MacVim buffer.
on run
tell application "System Events"
set currProcs to (name of processes)
set MacVimRunning to (currProcs contains "MacVim")
if not MacVimRunning then
tell application "MacVim" to activate
end if
tell process "MacVim"
click menu item "New Window" of menu "File" of menu bar 1
set visible to true