Skip to content

Instantly share code, notes, and snippets.

@adibhanna
adibhanna / config
Created April 22, 2025 14:26
Ghostty Config
font-family = BerkeleyMono Nerd Font
font-size = 14
theme = GruvboxDarkHard
shell-integration-features = no-cursor,sudo,no-title
cursor-style = block
adjust-cell-height = 35%
title = " "
macos-titlebar-proxy-icon=hidden
#!/usr/bin/env bash
test_file=$(find . -type f -name '*_test.go' | fzf --prompt="Select test file > " --preview 'bat --color=always {}')
if [ -z "$test_file" ]; then
echo "No test file selected. Exiting..."
exit 1
fi
tests=$(grep -nE '^func Test[A-Z]' "$test_file")
if [ -z "$tests" ]; then
#!/bin/bash
function go_modernize_interactive() {
# Check if bat is installed
if ! command -v bat &>/dev/null; then
echo "bat is not installed. Please install it first (https://github.com/sharkdp/bat)"
echo "You can install it with: "
echo " - Homebrew: brew install bat"
echo " - Ubuntu/Debian: apt install bat"
echo " - Fedora: dnf install bat"
#!/bin/bash
function go_modernize_interactive() {
# Check if bat is installed
if ! command -v bat &>/dev/null; then
echo "bat is not installed. Please install it first (https://github.com/sharkdp/bat)"
echo "You can install it with: "
echo " - Homebrew: brew install bat"
echo " - Ubuntu/Debian: apt install bat"
echo " - Fedora: dnf install bat"
#!/bin/bash
function go_modernize_fzf() {
local go_files=$(find . -name "*.go" -not -path "*/vendor/*" | sort)
if [[ -z "$go_files" ]]; then
echo "No Go files found"
return 1
fi
local selected_files=$(echo "$go_files" | fzf --multi --height 40% --reverse --preview "cat {}")
@adibhanna
adibhanna / settings.json
Created March 12, 2025 16:21
vim keymaps - vscode
[
"vim.easymotion": false,
"vim.incsearch": true,
"vim.useSystemClipboard": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": true,
"vim.enableNeovim": true,
"vim.highlightedyank.enable": true,
"vim.insertModeKeyBindings": [
{
@adibhanna
adibhanna / config
Last active April 21, 2025 07:28
Ghostty config
font-family = BerkeleyMono Nerd Font
#font-family = Iosevka Nerd Font
# font-family = SFMono Nerd Font
font-size = 20
theme = GruvboxDarkHard
shell-integration-features = no-cursor,sudo,no-title
cursor-style = block
adjust-cell-height = 35%
# background-opacity = 0.96
@adibhanna
adibhanna / .tmux.conf
Last active March 30, 2025 14:09
.tmux.conf
#--------------------------------------------------------------------------
# Configuration
#--------------------------------------------------------------------------
# Use Vi mode
setw -g mode-keys vi
# Increase scrollback buffer size
set -g history-limit 10000
@adibhanna
adibhanna / keymap.json
Created July 2, 2024 21:19
Zed Keymaps
[
{
"context": "Editor && VimControl && !VimWaiting && !menu",
"bindings": {
"ctrl-w z": "workspace::ToggleZoom",
"ctrl-w t": "terminal_panel::ToggleFocus",
"g ]": "editor::GoToDiagnostic",
"g [": "editor::GoToPrevDiagnostic",
"g r": "editor::FindAllReferences",
"shift-k": "editor::Hover",
@adibhanna
adibhanna / kitty.conf
Last active February 21, 2025 23:48
kitty
# vim:fileencoding=utf-8:foldmethod=marker
shell /bin/zsh --login --interactive
# font_size 20.0
font_size 14.0
# font_family SFMono Nerd Font
# bold_font SFMono Nerd Font Bold
# italic_font SFMono Nerd Font Italic
# bold_italic_font SFMono Nerd Font Bold Italic