Skip to content

Instantly share code, notes, and snippets.

View d1che's full-sized avatar

Willem Deen d1che

View GitHub Profile
@d1che
d1che / confirm.sh
Last active September 3, 2025 10:12
Bash snippets
# this function will ask for confirmation
confirm() {
while true; do
read -p "$1 (y/N)? " choice
case "$choice" in
y|Y ) return 0;;
n|N ) return 1;;
"" ) return 1;;
* ) echo "Invalid choice. Please specify \"y\" or \"n\".";;
esac
@d1che
d1che / init.lua
Last active September 7, 2022 15:48
Neovim config
print('hi!')
@d1che
d1che / init.vim
Last active September 7, 2022 15:38
Neovim config
" To do
" - Configure feline
" - Configure LSP starting from scratch
" - Learn tmux
call plug#begin('~/.vim/plugged')
" initialize plugin system
call plug#end()