Skip to content

Instantly share code, notes, and snippets.

View chetanc10's full-sized avatar

ChetaN chetanc10

View GitHub Profile
@chetanc10
chetanc10 / c-my-term.sh
Last active September 3, 2025 13:02
ChetaN's bash terminal setup with work environment enhancer packages
#!/bin/bash
sname=$(basename $0)
echo "Installing basic useful packages for $sname setup"
[[ "$OSTYPE" != "linux-gnu"* ]] && echo "OS is '$OSTYPE'.. OS not supported" && exit 0
utils=(make gcc git curl tree extrace zenity pulseaudio-utils net-tools manpages-posix-dev python-is-python3 python3-pip)
beepacks=(chetanc10/probash chetanc10/vimmers chetanc10/retag chetanc10/packers chetanc10/gitbit chetanc10/wee)
@chetanc10
chetanc10 / vim-cmd-helpers.txt
Last active August 30, 2025 12:49
VIM Command Helpers
/* For an enhanced vim environment setup and experience, please check */
/* for replacing whole pattern over entire directory tree */
:arg **/*.c | argadd **/*.h | argdo %s/\<pattern1\>/pattern2/ge | update
:arg **/*.[ch] | argdo %s/\<pattern1\>/pattern2/ge | update
/* delete unwanted whitespaces/tabspaces from the line */
:s/\s\+/ /g
cmd mode: diw