View _csvtk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#compdef _csvtk csvtk | |
# zsh completion for csvtk -*- shell-script -*- | |
__csvtk_debug() | |
{ | |
local file="$BASH_COMP_DEBUG_FILE" | |
if [[ -n ${file} ]]; then | |
echo "$*" >> "${file}" | |
fi |
View median.theme.bash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |