Skip to content

Instantly share code, notes, and snippets.

View mshaaban0's full-sized avatar
🦎
🌎

Moe Shaaban mshaaban0

🦎
🌎
View GitHub Profile
@mshaaban0
mshaaban0 / statusline-command.sh
Created April 15, 2026 00:35
Claude Code statusline script - shows model, git branch, folder, context usage, and rate limits
#!/bin/bash
input=$(cat)
# Model
MODEL=$(echo "$input" | jq -r '.model.display_name // .model.id // .model.name // empty')
[ -z "$MODEL" ] && MODEL="Claude"
# Directory β€” prefer cwd from JSON, fall back to shell cwd
CWD=$(echo "$input" | jq -r '.workspace.current_dir // .cwd // empty')
[ -z "$CWD" ] && CWD=$(pwd)
@mshaaban0
mshaaban0 / input.scss
Created December 17, 2020 13:17
Generated by SassMeister.com.
$spaces: (
2: 0.125rem,
4: 0.25rem,
8: 0.5rem,
12: 0.75rem,
16: 1rem,
20: 1.25rem,
24: 1.5rem,
32: 2rem,
40: 2.5rem,
@mshaaban0
mshaaban0 / .vimrc
Created June 14, 2020 19:53
2020 Vim
set shell=/bin/bash
set incsearch
" default tab size
set tabstop=2
set shiftwidth=2
set updatetime=100
set directory^=$HOME/vimswap//
" Specify a directory for plugins
@mshaaban0
mshaaban0 / abolla.theme
Created June 5, 2018 17:00
Oh my zsh - Special theme
# The prompt
PROMPT=' $(_current_path)$(git_prompt_info) $(_arrow) '
# The right-hand prompt
RPROMPT='$(_prompt_nvm)$(git_prompt_status)'
function _current_path() {
echo "%{$fg[magenta]%}%c%{$reset_color%}"
}
{
"window.zoomLevel": 0,
"editor.fontFamily": "Operator Mono, Monaco, 'Courier New', monospace",
"editor.fontWeight": "400",
"editor.fontSize": 12,
"editor.tabSize": 4,
"terminal.integrated.shell.osx": "/bin/zsh",
"workbench.colorTheme": "One Monokai",
"files.insertFinalNewline": true,
"search.exclude": {