Skip to content

Instantly share code, notes, and snippets.

Avatar
🚀
Go Go!

Joseph Lee cgjosephlee

🚀
Go Go!
View GitHub Profile
@cgjosephlee
cgjosephlee / _csvtk
Created Jul 23, 2021
csvtk zsh autocompletion
View _csvtk
#compdef _csvtk csvtk
# zsh completion for csvtk -*- shell-script -*-
__csvtk_debug()
{
local file="$BASH_COMP_DEBUG_FILE"
if [[ -n ${file} ]]; then
echo "$*" >> "${file}"
fi
@cgjosephlee
cgjosephlee / median.theme.bash
Last active Dec 19, 2018
A simple bash theme
View median.theme.bash
#!/usr/bin/env bash
SCM_THEME_PROMPT_PREFIX="${bold_cyan} (${bold_green}"
SCM_THEME_PROMPT_SUFFIX="${bold_cyan})"
SCM_THEME_PROMPT_DIRTY=" ${bold_red}"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}"
__last_cmd_return() {
code=$?
if [ $code = 0 ]; then