Skip to content

Instantly share code, notes, and snippets.

@vvvvv
vvvvv / karabiner.json
Created August 24, 2022 14:46
karabiner-elements config for cherry g80-3000
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false,
"unsafe_ui": false
},
"profiles": [
{
"complex_modifications": {
@vvvvv
vvvvv / fzf_super_cd
Created March 3, 2024 08:03
fzf - cd into any dir from anywhere
#!/usr/bin/env zsh
# Use fzf to cd into any directory in your home directory.
#
# Name this script fzf_super_cd and add it to your fpath.
# Add the following to your .zshrc to bind it to Ctrl+E.
#
# zle -N fzf_super_cd
# bindkey -M emacs '^E' fzf_super_cd
# bindkey -M vicmd '^E' fzf_super_cd
@vvvvv
vvvvv / copy_last_command
Created March 3, 2024 08:04
copy last command to clipboard unless it's a `cd`
#!/usr/bin/env zsh
# Copy the last command executed to the clipboard.
#
# Name this script copy_last_command and add it to your fpath.
# Add the following in your .zshrc to bind this script to Ctrl+Z.
#
# zle -N copy_last_command
# bindkey -M emacs '^Z' copy_last_command
# bindkey -M vicmd '^Z' copy_last_command