From 4dfa0bbe38020cd5df98831882c26b81e9c0a55c Mon Sep 17 00:00:00 2001 From: Jan Andrle Date: Mon, 19 Feb 2024 16:07:53 +0100 Subject: [PATCH] :zap: Replace links --- .XCompose | 80 +- .bash/.bash_aliases | 143 +- .bash/.bash_completions | 50 +- .bash/.bash_jaaENV | 104 +- .bash/.bash_nvm | 4 +- .bash/.bash_promt | 62 +- .bash/.bash_sdkman | 4 +- .bash/.profile_androidsdk | 8 +- .bash/cordova.completion | 135 +- .bash/himalaya.completion | 2541 +++++++++++++++++++++- .bashrc | 66 +- .config/gh/config.yml | 20 +- .config/vifm/colors/ph.vifm | 27 + .config/vifm/vifmrc | 374 +++- .gitconfig | 80 +- .inputrc | 87 +- .newsboat/config | 60 +- .newsboat/html2rss-streamCZ.mjs | 23 +- .newsboat/html2rss.mjs | 40 +- .newsboat/urls | 226 +- .profile | 38 +- .ssh/README.md | 9 +- .tridactylrc | 116 +- .vim/after | 1 - .vim/after/ftplugin/gitcommit/ai.vim | 6 + .vim/after/ftplugin/markdown/folding.vim | 113 + .vim/after/ftplugin/markdown/mdexpr.vim | 3 + .vim/after/syntax/markdown.vim | 3 + .vim/compiler | 1 - .vim/compiler/jshint.vim | 5 + .vim/spell | 1 - .vim/spell/cs.utf-8.add | 1 + .vim/spell/cs.utf-8.spl | Bin 0 -> 1204107 bytes .vim/syntax | 1 - .vim/syntax/vifm.vim | 495 +++++ .vim/user_tips.vim | 51 +- .vimrc | 465 +++- 37 files changed, 5415 insertions(+), 28 deletions(-) mode change 120000 => 100644 .XCompose mode change 120000 => 100644 .bash/.bash_aliases mode change 120000 => 100644 .bash/.bash_completions mode change 120000 => 100644 .bash/.bash_jaaENV mode change 120000 => 100644 .bash/.bash_nvm mode change 120000 => 100644 .bash/.bash_promt mode change 120000 => 100644 .bash/.bash_sdkman mode change 120000 => 100644 .bash/.profile_androidsdk mode change 120000 => 100644 .bash/cordova.completion mode change 120000 => 100644 .bash/himalaya.completion mode change 120000 => 100644 .bashrc mode change 120000 => 100644 .config/gh/config.yml create mode 100644 .config/vifm/colors/ph.vifm mode change 120000 => 100644 .config/vifm/vifmrc mode change 120000 => 100644 .gitconfig mode change 120000 => 100644 .inputrc mode change 120000 => 100644 .newsboat/config mode change 120000 => 100755 .newsboat/html2rss-streamCZ.mjs mode change 120000 => 100644 .newsboat/html2rss.mjs mode change 120000 => 100644 .newsboat/urls mode change 120000 => 100644 .profile mode change 120000 => 100644 .ssh/README.md mode change 120000 => 100644 .tridactylrc delete mode 120000 .vim/after create mode 100644 .vim/after/ftplugin/gitcommit/ai.vim create mode 100644 .vim/after/ftplugin/markdown/folding.vim create mode 100644 .vim/after/ftplugin/markdown/mdexpr.vim create mode 100644 .vim/after/syntax/markdown.vim delete mode 120000 .vim/compiler create mode 100644 .vim/compiler/jshint.vim delete mode 120000 .vim/spell create mode 100644 .vim/spell/cs.utf-8.add create mode 100644 .vim/spell/cs.utf-8.spl delete mode 120000 .vim/syntax create mode 100644 .vim/syntax/vifm.vim mode change 120000 => 100644 .vim/user_tips.vim mode change 120000 => 100644 .vimrc diff --git a/.XCompose b/.XCompose deleted file mode 120000 index 631f961..0000000 --- a/.XCompose +++ /dev/null @@ -1 +0,0 @@ -/home/jaandrle/Vzdálené/GitHub/dotfiles/ubuntu/.XCompose \ No newline at end of file diff --git a/.XCompose b/.XCompose new file mode 100644 index 0000000..e7ed099 --- /dev/null +++ b/.XCompose @@ -0,0 +1,79 @@ +# jaandrle customizations +include "/usr/share/X11/locale/cs_CZ.UTF-8/Compose" + + : " " U202F # thin nonbreaking space + : "​" U200B + <8> <8> : "∞" U221E + : "≡" + : "≈" + : "≃" + : "★" + : "✓" + : "✗" + + <8> : "↑" + <6> : "→" + <2> : "↓" + <4> : "←" + <5> : "↔" + <7> : "↖" + <9> : "↗" + <3> : "↘" + <1> : "↙" + : "↑" + : "→" + : "↓" + : "←" + : "↔" + : "↖" + : "↗" + : "↘" + : "↙" + + <8> : "⇑" + <6> : "⇒" + <2> : "⇓" + <4> : "⇐" + <5> : "⇔" + : "⇑" + : "⇒" + : "⇓" + : "⇐" + : "⇔" + +# Greek ambiguities: epsilon/eta, theta/tau, pi/phi/psi, omega/omicron + : "α" + : "β" + : "γ" + : "δ" + <3> : "ε" + : "ζ" + : "η" + : "θ" + : "ι" + : "κ" + : "λ" + : "μ" + : "ν" + : "ξ" +# note: no omicron +

: "π" +

: "Ϟ" + : "ρ" + : "σ" + : "τ" + : "ψ" + : "φ" + : "χ" + : "ω" + + : "Γ" + : "Δ" + : "Θ" + : "Λ" + : "Ξ" +

: "Π" + : "Σ" + : "Φ" + : "Ψ" + : "Ω" diff --git a/.bash/.bash_aliases b/.bash/.bash_aliases deleted file mode 120000 index 96fd016..0000000 --- a/.bash/.bash_aliases +++ /dev/null @@ -1 +0,0 @@ -/home/jaandrle/Vzdálené/GitHub/dotfiles/bash/.bash/.bash_aliases \ No newline at end of file diff --git a/.bash/.bash_aliases b/.bash/.bash_aliases new file mode 100644 index 0000000..87d84bc --- /dev/null +++ b/.bash/.bash_aliases @@ -0,0 +1,142 @@ + # Make less more friendly for non-text input files, see lesspipe(1) +[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" +alias gitdotfiles='/usr/bin/git --git-dir="$HOME/.dotfiles/" --work-tree="$HOME"' +# enable color support of ls and also add handy aliases +if [ -x /usr/bin/dircolors ]; then + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" + alias ls='ls --color=auto' + alias dir='dir --color=auto' + alias vdir='vdir --color=auto' + + alias grep='grep --color=auto' + alias fgrep='fgrep --color=auto' + alias egrep='egrep --color=auto' + alias diff='diff --color=auto' +fi +alias §rm='rm -vi' +alias §cp='cp -vi' +alias §mv='mv -vi' +alias §df='df -Th' +§du(){ + [[ "$1" == '--help' ]] && echo "§du; §du '../*'" && return 0 + du -h -x -s -- ${1:-*} | sort -r -h; +} + +alias §xclip-copy='xclip -selection clipboard' +alias §xclip-paste='xclip -o -selection clipboard' + +LAST_PWD_PATH="$BASH_DOTFILES/.bash_last_pwd" +[ -f "$LAST_PWD_PATH" ] && OLDPWD=`cat $LAST_PWD_PATH` +cd(){ builtin cd "$@" && echo `pwd` > "$LAST_PWD_PATH"; } + +history_clean(){ awk '!seen[$0]++ {print $0}' $HOME/.bash_history; } +history_edit(){ vim $HOME/.bash_history; } +history_cat(){ LC_ALL=C cat ~/.bash_history; } +history_most_used(){ LC_ALL=C cat ~/.bash_history | cut -d ';' -f 2- | §awk 1 | sort | uniq -c | sort -r -n | head -n ${1-10}; } + +§(){ + [[ -z "$1" ]] && clear && return 0 + echo "$ [--help]= clear or [print this text]" + alias | grep "alias §" --color=never + declare -F | grep 'declare -f §' --color=never + ls ~/bin | grep -P "^§" | sed 's/^§/~\/bin\/ §/' +} + +alias §ls='ls -pQFh --group-directories-first' +alias §less='less -R -S' + +alias §cd.='clear;§ls' +§cd..(){ cd $(eval printf '../'%.0s {1..$1}); } +§cd(){ + [[ "$1" == '--help' ]] && echo -e " + Usage: §cd NUMBER|PATH + See: dirs -v + " && return 0 + [[ -z "$1" ]] && dirs -v | sed 1d && return 0 + [[ $1 =~ ^[0-9]+$ ]] && cd "$(dirs -l +$1)" && dirs -v | sed 1d && return 0 + builtin pushd "$1" >/dev/null && pushd . +} +alias cd-vifm='cd `vifm --choose-dir -`' +mkcd(){ mkdir -p -- "$1" && cd -P -- "$1"; } + +alias §find.='find . -maxdepth 1' + +alias pdftk='java -jar $HOME/bin/pdftk-all.jar' +bw-session(){ + bw logout + login=`kwallet-query kdewallet -f accounts -r Bitwarden 2> /dev/null` + export BW_CLIENTSECRET=`echo "$login" | jq -r .secret` + export BW_CLIENTID=`echo "$login" | jq -r .id` + bw login --apikey --raw + export BW_SESSION=`bw unlock --raw $(echo "$login" | jq -r .pass)` && echo "Bitwarden session ON" || echo "Bitwarden session FAILED" + unset BW_CLIENTSECRET + unset BW_CLIENTID +} + +alias §psmem_all='ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%mem' +alias §psmem='§psmem_all | head -n 10' +alias §pscpu_all='ps -eo pid,ppid,cmd,%mem,%cpu --sort=-%cpu' +alias §pscpu='§pscpu_all | head -n 10' +alias §psnet_all='lsof -P -i -n' + +§ping-test(){ # Pings ip address of noip.com and www.google.com. + ping -c 1 -q 8.23.224.107 | grep --color=never -A 1 -i '\---' + ping -c 1 -q www.google.com | grep --color=never -A 1 -i '\---' +} +§whoami(){ + [[ "$1" == '--help' ]] && echo '§whoami; §whoami --ip' && return 0 + local ip=$(curl -s ifconfig.me) + [[ "$1" == '--ip' ]] && echo "$ip" && return 0 + local L=" %s\n" + printf "\n" + printf "$L" "USER: $(echo $USER)" + printf "$L" "IP ADDR: $ip" + printf "$L" "HOSTNAME: $(hostname -f)" + printf "$L" "KERNEL: $(uname -rms)" + printf "\n" +} +§cmdfu(){ curl "https://www.commandlinefu.com/commands/matching/$@/$(echo -n $@ | openssl base64)/plaintext"; } +aai(){ + [[ "$1" == '--help' ]] && ai ask --help && return 0; + echo "ai ask \"$*, thanks for your help\""; ai ask "\"$*, thanks for your help\""; +} +eval "$(zoxide init --cmd cd bash)" + +alias npx-wca='npx -y web-component-analyzer' +alias npx-qnm='npx -y qnm' +alias npx-hint='npx -y hint' +alias npx-markdown='nohup npx markserv' +alias zfz=fzf-carroarmato0.fzf + +§url-curl(){ curl --silent -I "$1" | grep -i location; } + +alias bathelp='bat --plain --language=help' + +rpg(){ + rpg-cli "$@" + if ( [[ "$1" == "cd" ]] || [[ "$1" == "ls" ]] ); then + [[ "$2" == "" ]] && $1 . && return 0 + [[ "$2" == ".." ]] && $1 .. && return 0 + [[ "-1" != "$(nodejsscript --print "s.ls().findIndex(e=> e==='$2'.replace(/\/$/, ''))")" ]] && $1 "$2" && return 0 + fi + return 0 + + # [[ "$(rpg-cli pwd)" == "$(pwd)" ]] && return 0 + # cd "$(rpg-cli pwd)" +} +rpg-dungeon(){ + current=$(basename $PWD) + number_re='^[0-9]+$' + + if [[ $current =~ $number_re ]]; then + next=$(($current + 1)) + command mkdir -p $next && cd $next && rpg ls + elif [[ -d 1 ]] ; then + cd 1 && rpg ls + else + command mkdir -p dungeon/1 && cd dungeon/1 && rpg ls + fi +} + +# alias adb-device='adb devices | tail -n +2 | head -n 1 | §awk 1' +# make-completion-wrapper, see https://gdhnotes.blogspot.com/2014/02/alias-bash-completion.html diff --git a/.bash/.bash_completions b/.bash/.bash_completions deleted file mode 120000 index afc57b9..0000000 --- a/.bash/.bash_completions +++ /dev/null @@ -1 +0,0 @@ -/home/jaandrle/Vzdálené/GitHub/dotfiles/bash/.bash/.bash_completions \ No newline at end of file diff --git a/.bash/.bash_completions b/.bash/.bash_completions new file mode 100644 index 0000000..e65918d --- /dev/null +++ b/.bash/.bash_completions @@ -0,0 +1,49 @@ +eval "$(gh completion -s bash)" +# gh tips: https://gist.github.com/ChristopherA/3cca24936fb2c84786a29f67bacacd3e +# used ectension: heaths/gh-label +[[ $- != *i* ]] && return # dont include rest in Vim + +SCRIPT_DIR=$( builtin cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +source "$SCRIPT_DIR/complete-alias/complete_alias" +complete -F _complete_alias gitdotfiles + +alias C--asana='eval "$($HOME/bin/asana.mjs completion_bash)"' +alias C--himalaya='\. "$BASH_DOTFILES/himalaya.completion"' +alias C--uu='eval "$($HOME/bin/uu --completion-bash)"' +alias C--bs='eval "$(bs .completion bash)"' +alias C--jc='eval "$(jc -B)" … newer version needed' +\. "$BASH_DOTFILES/cordova.completion" +eval "$(node --completion-bash)" +eval "$(npm completion)" +eval "$(nodejsscript --completion bash)" + +_npx() { + local cur="${COMP_WORDS[COMP_CWORD]}" + + if [[ $COMP_CWORD != 1 ]]; then + case "${COMP_WORDS[1]}" in + gulp) + local compls=$(npx gulp --tasks-simple) + if [[ $compls == *"__autocomplete_bash"* ]]; then + compls="$compls $(npx gulp -L __autocomplete_bash --_l=$COMP_CWORD --_c=$cur)" + fi + ;; + esac + COMPREPLY=($(compgen -W "$compls" -- "$cur")) + return 0; + fi + + local dir=$(pwd -P) + while [[ -n "$dir" ]]; do + if [[ ! -d $dir/node_modules/.bin ]]; then + dir=${dir%/*} + continue + fi + local execs=( `cd $dir/node_modules/.bin; find -L . -type f -executable` ) + execs=( ${execs[@]/#.\//} ) + COMPREPLY=( $(compgen -W "${execs[*]} serve" -- "$cur" ) ) + break + done +} + +complete -F _npx npx diff --git a/.bash/.bash_jaaENV b/.bash/.bash_jaaENV deleted file mode 120000 index 3d50457..0000000 --- a/.bash/.bash_jaaENV +++ /dev/null @@ -1 +0,0 @@ -/home/jaandrle/Vzdálené/GitHub/dotfiles/bash/.bash/.bash_jaaENV \ No newline at end of file diff --git a/.bash/.bash_jaaENV b/.bash/.bash_jaaENV new file mode 100644 index 0000000..38b21f0 --- /dev/null +++ b/.bash/.bash_jaaENV @@ -0,0 +1,103 @@ +function jaaENV { + if [ "$1" = "--help" ]; then + echo "Utility to combine nvm/sdk/… in one script/config file '.jaaENV'" + echo " ↘ instead of 'nvm use 16 & sdk use …'" + echo "" + echo "Usage:" + echo " jaaENV" + echo " jaaENV [--help|--ls]" + echo " jaaENV --save …to_save (example: jaaENV --save nodejs php)" + echo "" + echo "Description:" + echo " - Without arguments loads infos from '.jaaENV'" + echo " - 'ls' shows supported options to auto load" + echo " - 'save' cerates config file '.jaaENV'" + echo "" + echo "Usage '.jaaENV' files: " + echo " typical: '\nphp=5.6\nnodejs=16.13.0'" + echo " link: '. ../.jaaENV' … use settings from parent folder" + echo " Options:" + echo " 'android_home': Exports 'ANDROID_HOME' (uses 'ANDROID_HOME_BAK') instead of new 'ANDROID_SDK_ROOT'. Value can be anything (use '1')." + echo " 'jdk': Exports 'JAVA_HOME' based on wanted version (currently 11/1.8)" + echo " 'nodejs'|'php': NodeJS/PHP versions" + echo " 'gradle': Cordova uses folder scoped → so unnecesarly" + echo "" + echo "Install: " + echo " gradle ⇒ https://sdkman.io/" + echo " node ⇒ https://github.com/nvm-sh/nvm" + echo " php ⇒ http://jdem.cz/fgyu56 + https://deb.sury.org/" + echo "" + echo "Tips:" + echo " sudo update-alternatives --set php /usr/bin/php\$php" + return 0 + fi + if [ "$1" = "--save" ]; then + shift + rm -vi .jaaENV + while test $# -gt 0 + do + case "$1" in + nodejs|node) + local nodejs_version=`node --version` + echo "nodejs=${nodejs_version:1}" >> .jaaENV + ;; + gradle) + local gradle_version=`gradle --version | head -n 3 | tail -n 1 | §awk 2` + echo "gradle=$gradle_version" >> .jaaENV + ;; + php) + local php_version=`php --version | head -n 1 | §awk 2` + echo "php=$php_version" >> .jaaENV + ;; + *) + echo "unknown '$1' – skipped" + ;; + esac + shift + done + return 0 + fi + if [ "$1" = "--ls" ]; then + echo ":: nvm ls ::\n" + nvm ls + echo ":: find /usr/bin/ -name php* ::\n" + find /usr/bin/ -name php* + echo ":: sdk ls gradle | cat :: " + sdk ls gradle | cat + return 0 + fi + + if [ -f "compose.yaml" ]; then + jdk=$(grep -Po 'VERSION_JAVA=\K.*' compose.yaml) + nodejs=$(grep -Po 'VERSION_NODEJS=\K.*' compose.yaml) + else + . ./.jaaENV + fi + if [ ! -z ${android_home+x} ]; then export ANDROID_HOME=$ANDROID_HOME_BAK; echo "\$ANDROID_HOME=$ANDROID_HOME"; else unset ANDROID_HOME; echo "\$ANDROID_SDK_ROOT=$ANDROID_SDK_ROOT"; fi + if [ ! -z ${android_home_is_sdk+x} ]; then export ANDROID_HOME=$ANDROID_SDK_ROOT; echo "\$ANDROID_HOME=$ANDROID_HOME"; fi + if [ ! -z ${jdk+x} ]; then + if (( $(echo "$jdk > 9" | bc -l) )); then + export JAVA_HOME_bk=$JAVA_HOME + export JAVA_HOME=/snap/android-studio/current/android-studio/jre; + elif [ ! -z ${JAVA_HOME_bk+x} ]; then + export JAVA_HOME=$JAVA_HOME_bk + fi + echo "\$JAVA_HOME=$JAVA_HOME" + fi + if [ ! -z ${nodejs+x} ]; then nvm use $nodejs; fi + if [ ! -z ${gradle+x} ]; then sdk use gradle $gradle | tr -d '\n'; echo ; fi + if [ ! -z ${php+x} ]; then + local php_local=`php --version | head -n 1 | §awk 2` + if [[ "$php_local" == "$php"* ]]; then + echo "php $php" + else + echo "php $php ← $php_local" + sudo update-alternatives --set php /usr/bin/php$php + sudo -k + fi + fi + unset android_home + unset nodejs + unset gradle + unset php +} diff --git a/.bash/.bash_nvm b/.bash/.bash_nvm deleted file mode 120000 index 2dc8600..0000000 --- a/.bash/.bash_nvm +++ /dev/null @@ -1 +0,0 @@ -/home/jaandrle/Vzdálené/GitHub/dotfiles/bash/.bash/.bash_nvm \ No newline at end of file diff --git a/.bash/.bash_nvm b/.bash/.bash_nvm new file mode 100644 index 0000000..acc6ed5 --- /dev/null +++ b/.bash/.bash_nvm @@ -0,0 +1,3 @@ +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm +[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion diff --git a/.bash/.bash_promt b/.bash/.bash_promt deleted file mode 120000 index 615d2b1..0000000 --- a/.bash/.bash_promt +++ /dev/null @@ -1 +0,0 @@ -/home/jaandrle/Vzdálené/GitHub/dotfiles/bash/.bash/.bash_promt \ No newline at end of file diff --git a/.bash/.bash_promt b/.bash/.bash_promt new file mode 100644 index 0000000..2a4d116 --- /dev/null +++ b/.bash/.bash_promt @@ -0,0 +1,61 @@ +function setPromt { + if [ "$color_prompt" != yes ]; then + PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' + return + fi + case "$TERM" in + xterm*|rxvt*) + ;; + *) + PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' + return + ;; + esac + PROMPT_COMMAND=updatePromt + PS2="|" +} +function updatePromt { + local prev_exit="$?" + # color_helper_>>color<< (Note: \[\]= escaping) + local chR="\[\e[1;91m\]" #red + local chW="\[\033[00m\]" #white + local chG="\[\033[01;32m\]" #green + local chB="\[\033[0;34m\]" #blue + local chP="\[\033[0;35m\]" #purple + local chY="\[\033[0;33m\]" #yellow + PS1="" + if [ $prev_exit == 0 ]; then + PS1+="$chG✓ $chW" + else + PS1+="$chR✗ $chW" + fi + local jobs="$(jobs | wc -l)" + if [ $jobs != 0 ]; then + PS1+="${chY}≡$jobs$chW" + fi + PS1+="${debian_chroot:+($debian_chroot)}" + PS1+=" At ${chG}\A${chW}" + PS1+=" by ${chP}\u${chW}" + if sudo -n true 2>/dev/null; then + PS1+="${chR} (sudo)${chW}" + fi + PS1+=" in " + if \git rev-parse --is-inside-work-tree >/dev/null 2>&1; then + local branch="$(\git symbolic-ref -q HEAD)" + PS1+="[${branch#refs/heads/}" + local status="$(git for-each-ref --format='%(upstream:trackshort)' refs/heads | awk '!seen[$1]++ {printf $1}')" + status+="$(git status --porcelain | awk '!seen[$1]++ {printf $1}')" + if [ "$statua"s ]; then + PS1+="|$chY$status$chW" + fi + PS1+="] " + fi + PS1+="${chB}\w${chW}" + PS1+="\n:" + history -a +} +setPromt +unset color_prompt +unset -f setPromt + +# vim: set filetype=sh tabstop=4 shiftwidth=4 textwidth=250 expandtab : diff --git a/.bash/.bash_sdkman b/.bash/.bash_sdkman deleted file mode 120000 index e5bb810..0000000 --- a/.bash/.bash_sdkman +++ /dev/null @@ -1 +0,0 @@ -/home/jaandrle/Vzdálené/GitHub/dotfiles/bash/.bash/.bash_sdkman \ No newline at end of file diff --git a/.bash/.bash_sdkman b/.bash/.bash_sdkman new file mode 100644 index 0000000..1a786af --- /dev/null +++ b/.bash/.bash_sdkman @@ -0,0 +1,3 @@ +#THIS MUST BE AT THE END OF THE `$HOME/.bashrc` FOR SDKMAN TO WORK!!! +export SDKMAN_DIR="$HOME/.sdkman" +[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh" diff --git a/.bash/.profile_androidsdk b/.bash/.profile_androidsdk deleted file mode 120000 index 713b570..0000000 --- a/.bash/.profile_androidsdk +++ /dev/null @@ -1 +0,0 @@ -/home/jaandrle/Vzdálené/GitHub/dotfiles/bash/.bash/.profile_androidsdk \ No newline at end of file diff --git a/.bash/.profile_androidsdk b/.bash/.profile_androidsdk new file mode 100644 index 0000000..cb8a2e1 --- /dev/null +++ b/.bash/.profile_androidsdk @@ -0,0 +1,7 @@ +# IMPORT IN `$HOME/.profile` +export ANDROID_HOME_BAK="$HOME/.local/share/umake/android/android-studio" +export ANDROID_SDK_ROOT="$HOME/.local/share/umake/android/android-studio-sdk" +export PATH=$PATH:$ANDROID_SDK_ROOT/tools/ +export PATH=$PATH:$ANDROID_SDK_ROOT/platform-tools/ +export PATH=$PATH:$ANDROID_SDK_ROOT/cmdline-tools/latest/bin/ +export PATH=$PATH:$ANDROID_SDK_ROOT/emulator/ diff --git a/.bash/cordova.completion b/.bash/cordova.completion deleted file mode 120000 index b9d6eee..0000000 --- a/.bash/cordova.completion +++ /dev/null @@ -1 +0,0 @@ -/home/jaandrle/Vzdálené/GitHub/dotfiles/bash/.bash/cordova.completion \ No newline at end of file diff --git a/.bash/cordova.completion b/.bash/cordova.completion new file mode 100644 index 0000000..9b142af --- /dev/null +++ b/.bash/cordova.completion @@ -0,0 +1,134 @@ +# +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. +# + +platforms() { + get_cordova && COMPREPLY=( $(compgen -W "$(${CORDOVA_BIN} platform ls | tr -d "[]',")" -- $1) ) +} + +plugins() { + get_cordova && COMPREPLY=( $(compgen -W "$(${CORDOVA_BIN} plugin ls | tr -d "[]',")" -- $1) ) +} + +get_cordova() { + local cordova + if [[ -n "${CORDOVA_BIN}" ]]; then return 0; fi + cordova=$(eval echo ${COMP_WORDS[0]}) + if [[ -x $cordova ]]; then CORDOVA_BIN=$cordova; return 0; fi + cordova=$(which cordova) + if [[ $? -eq 0 ]]; then CORDOVA_BIN=$cordova; return 0; fi + return 1 +} + +get_top_level_dir() { + local path + path=$(pwd) + while [ $path != '/' ]; do + if [ -d $path/.cordova ]; then + echo $path + return 0 + fi + path=$(dirname $path) + done + return 1 +} + +_cordova() +{ + local cur prev opts + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + + # Skip over any initial command line switches + local i=1 + while [[ $i -lt ${#COMP_WORDS[*]} ]] && [[ "${COMP_WORDS[${i}]}" == -* ]]; do + i=$((i+1)); + done + + # For the first word, supply all of the valid top-level commands + if [[ ${COMP_CWORD} -eq $i ]]; then + opts="help create info platform plugin prepare compile build clean run emulate serve" + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + fi + + case "${COMP_WORDS[$i]}" in + create) + if [[ ${COMP_CWORD} -eq $((i+1)) ]]; then + COMPREPLY=( $(compgen -d -- ${cur}) ) + return 0 + fi + ;; + platform) + if [[ ${COMP_CWORD} -eq $((i+1)) ]]; then + opts="add rm remove ls" + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + fi + case "${COMP_WORDS[$((i+1))]}" in + add) + opts="ios android wp7 wp8 blackberry www" + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0; + ;; + rm|remove) + platforms ${cur} + return 0 + ;; + esac + ;; + plugin) + if [[ ${COMP_CWORD} -eq $((i+1)) ]]; then + opts="add rm remove ls" + COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) + return 0 + fi + case "${COMP_WORDS[$((i+1))]}" in + add) + COMPREPLY=( $(compgen nospace -d -- ${cur}) ) + return 0; + ;; + rm|remove) + plugins ${cur} + return 0 + ;; + esac + ;; + prepare|compile|emulate) + platforms ${cur} + return 0 + ;; + build) + platforms ${cur} + COMPREPLY+=( $(compgen -W '--release --debug --help --device --emulator --buildConfig' -- ${cur}) ) + return 0 + ;; + run) + platforms ${cur} + COMPREPLY+=( $(compgen -W '--list --noprepare --nobuild --target --release --debug --help --device --emulator --buildConfig' -- ${cur}) ) + return 0 + ;; + serve) + if [[ ${COMP_CWORD} -eq $((i+1)) ]]; then + platforms ${cur} + return 0 + fi + ;; + esac +} +complete -F _cordova cordova diff --git a/.bash/himalaya.completion b/.bash/himalaya.completion deleted file mode 120000 index b87dda8..0000000 --- a/.bash/himalaya.completion +++ /dev/null @@ -1 +0,0 @@ -/home/jaandrle/Vzdálené/GitHub/dotfiles/bash/.bash/himalaya.completion \ No newline at end of file diff --git a/.bash/himalaya.completion b/.bash/himalaya.completion new file mode 100644 index 0000000..3067201 --- /dev/null +++ b/.bash/himalaya.completion @@ -0,0 +1,2540 @@ +alias himalaya=~/.local/bin/himalaya +# §mail completion bash > ~/.bash/§mail-completions.bash +_himalaya() { + local i cur prev opts cmds + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + cmd="" + opts="" + + for i in ${COMP_WORDS[@]} + do + case "${i}" in + himalaya|§mail) + cmd="himalaya" + ;; + + a) + cmd+="__a" + ;; + acc) + cmd+="__acc" + ;; + account) + cmd+="__account" + ;; + accounts) + cmd+="__accounts" + ;; + add) + cmd+="__add" + ;; + att) + cmd+="__att" + ;; + attachment) + cmd+="__attachment" + ;; + attachments) + cmd+="__attachments" + ;; + c) + cmd+="__c" + ;; + change) + cmd+="__change" + ;; + comp) + cmd+="__comp" + ;; + compe) + cmd+="__compe" + ;; + compl) + cmd+="__compl" + ;; + completion) + cmd+="__completion" + ;; + completions) + cmd+="__completions" + ;; + copy) + cmd+="__copy" + ;; + cp) + cmd+="__cp" + ;; + d) + cmd+="__d" + ;; + del) + cmd+="__del" + ;; + delete) + cmd+="__delete" + ;; + f) + cmd+="__f" + ;; + flag) + cmd+="__flag" + ;; + flags) + cmd+="__flags" + ;; + flg) + cmd+="__flg" + ;; + forward) + cmd+="__forward" + ;; + fw) + cmd+="__fw" + ;; + fwd) + cmd+="__fwd" + ;; + help) + cmd+="__help" + ;; + idle) + cmd+="__idle" + ;; + l) + cmd+="__l" + ;; + list) + cmd+="__list" + ;; + lst) + cmd+="__lst" + ;; + m) + cmd+="__m" + ;; + mailbox) + cmd+="__mailbox" + ;; + mailboxes) + cmd+="__mailboxes" + ;; + mb) + cmd+="__mb" + ;; + mbox) + cmd+="__mbox" + ;; + mboxes) + cmd+="__mboxes" + ;; + move) + cmd+="__move" + ;; + mv) + cmd+="__mv" + ;; + n) + cmd+="__n" + ;; + new) + cmd+="__new" + ;; + notify) + cmd+="__notify" + ;; + q) + cmd+="__q" + ;; + query) + cmd+="__query" + ;; + r) + cmd+="__r" + ;; + re) + cmd+="__re" + ;; + read) + cmd+="__read" + ;; + rem) + cmd+="__rem" + ;; + remove) + cmd+="__remove" + ;; + rep) + cmd+="__rep" + ;; + reply) + cmd+="__reply" + ;; + rm) + cmd+="__rm" + ;; + s) + cmd+="__s" + ;; + save) + cmd+="__save" + ;; + search) + cmd+="__search" + ;; + send) + cmd+="__send" + ;; + set) + cmd+="__set" + ;; + sort) + cmd+="__sort" + ;; + template) + cmd+="__template" + ;; + tpl) + cmd+="__tpl" + ;; + watch) + cmd+="__watch" + ;; + write) + cmd+="__write" + ;; + *) + ;; + esac + done + + case "${cmd}" in + himalaya) + opts=" -h -V -c -a -o -l -m --help --version --config --account --output --log-level --mailbox completion accounts mailboxes flag template attachments list search sort write send save read reply forward copy move delete notify watch help completions compl compe comp account acc a mailbox mboxes mbox mb m flags flg tpl attachment att a lst l s query q rep r fwd f cp c mv del d remove rm idle" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --config) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --account) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -a) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --output) + COMPREPLY=($(compgen -W "plain json" -- "${cur}")) + return 0 + ;; + -o) + COMPREPLY=($(compgen -W "plain json" -- "${cur}")) + return 0 + ;; + --log-level) + COMPREPLY=($(compgen -W "error warn info debug trace" -- "${cur}")) + return 0 + ;; + -l) + COMPREPLY=($(compgen -W "error warn info debug trace" -- "${cur}")) + return 0 + ;; + --mailbox) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -m) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + + himalaya__a) + opts=" -h -V -w --help --version --max-width " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --max-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__acc) + opts=" -h -V -w --help --version --max-width " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --max-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__account) + opts=" -h -V -w --help --version --max-width " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --max-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__accounts) + opts=" -h -V -w --help --version --max-width " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --max-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__att) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__attachment) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__attachments) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__c) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__comp) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__compe) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__compl) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__completion) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__completions) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__copy) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__cp) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__d) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__del) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__delete) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__f) + opts=" -e -h -V -a --encrypt --help --version --attachment " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --attachment) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -a) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__flag) + opts=" -h -V --help --version add set remove help a s change c rem rm r delete del d" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__flag__a) + opts=" -h -V --help --version ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__flag__add) + opts=" -h -V --help --version ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__flag__c) + opts=" -h -V --help --version ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__flag__change) + opts=" -h -V --help --version ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__flag__d) + opts=" -h -V --help --version ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__flag__del) + opts=" -h -V --help --version ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__flag__delete) + opts=" -h -V --help --version ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__flag__help) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__flag__r) + opts=" -h -V --help --version ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__flag__rem) + opts=" -h -V --help --version ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__flag__remove) + opts=" -h -V --help --version ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__flag__rm) + opts=" -h -V --help --version ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__flag__s) + opts=" -h -V --help --version ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__flag__set) + opts=" -h -V --help --version ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__flags) + opts=" -h -V --help --version add set remove help a s change c rem rm r delete del d" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__flg) + opts=" -h -V --help --version add set remove help a s change c rem rm r delete del d" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__forward) + opts=" -e -h -V -a --encrypt --help --version --attachment " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --attachment) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -a) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__fwd) + opts=" -e -h -V -a --encrypt --help --version --attachment " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --attachment) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -a) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__help) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__idle) + opts=" -h -V -k --help --version --keepalive " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --keepalive) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -k) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__l) + opts=" -h -V -s -p -w --help --version --size --page --max-width " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --size) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --page) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --max-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__list) + opts=" -h -V -s -p -w --help --version --size --page --max-width " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --size) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --page) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --max-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__lst) + opts=" -h -V -s -p -w --help --version --size --page --max-width " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --size) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --page) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --max-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__m) + opts=" -h -V -w --help --version --max-width " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --max-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__mailbox) + opts=" -h -V -w --help --version --max-width " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --max-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__mailboxes) + opts=" -h -V -w --help --version --max-width " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --max-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__mb) + opts=" -h -V -w --help --version --max-width " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --max-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__mbox) + opts=" -h -V -w --help --version --max-width " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --max-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__mboxes) + opts=" -h -V -w --help --version --max-width " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --max-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__move) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__mv) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__notify) + opts=" -h -V -k --help --version --keepalive " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --keepalive) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -k) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__q) + opts=" -h -V -s -p -w --help --version --size --page --max-width ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --size) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --page) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --max-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__query) + opts=" -h -V -s -p -w --help --version --size --page --max-width ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --size) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --page) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --max-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__r) + opts=" -A -e -h -V -a --all --encrypt --help --version --attachment " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --attachment) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -a) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__read) + opts=" -r -V -t -h --raw --help --version --mime-type --header " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --mime-type) + COMPREPLY=($(compgen -W "plain html" -- "${cur}")) + return 0 + ;; + -t) + COMPREPLY=($(compgen -W "plain html" -- "${cur}")) + return 0 + ;; + --header) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -h) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__remove) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__rep) + opts=" -A -e -h -V -a --all --encrypt --help --version --attachment " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --attachment) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -a) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__reply) + opts=" -A -e -h -V -a --all --encrypt --help --version --attachment " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --attachment) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -a) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__rm) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__s) + opts=" -h -V -s -p -w --help --version --size --page --max-width ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --size) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --page) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --max-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__save) + opts=" -h -V --help --version ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__search) + opts=" -h -V -s -p -w --help --version --size --page --max-width ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --size) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --page) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --max-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__send) + opts=" -h -V --help --version ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__sort) + opts=" -h -V -s -p -w -c --help --version --size --page --max-width --criterion ... " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --size) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --page) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -p) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --max-width) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -w) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --criterion) + COMPREPLY=($(compgen -W "arrival arrival:asc arrival:desc cc cc:asc cc:desc date date:asc date:desc from from:asc from:desc size size:asc size:desc subject subject:asc subject:desc to to:asc to:desc" -- "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -W "arrival arrival:asc arrival:desc cc cc:asc cc:desc date date:asc date:desc from from:asc from:desc size size:asc size:desc subject subject:asc subject:desc to to:asc to:desc" -- "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__template) + opts=" -h -V --help --version new reply forward save send help n rep re r fwd fw f" + if [[ ${cur} == -* || ${COMP_CWORD} -eq 2 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__template__f) + opts=" -V -s -f -t -c -b -h -B -S --help --version --subject --from --to --cc --bcc --header --body --signature " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --subject) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --from) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --to) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -t) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --bcc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -b) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --header) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -h) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --body) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -B) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --signature) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -S) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__template__forward) + opts=" -V -s -f -t -c -b -h -B -S --help --version --subject --from --to --cc --bcc --header --body --signature " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --subject) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --from) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --to) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -t) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --bcc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -b) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --header) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -h) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --body) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -B) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --signature) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -S) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__template__fw) + opts=" -V -s -f -t -c -b -h -B -S --help --version --subject --from --to --cc --bcc --header --body --signature " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --subject) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --from) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --to) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -t) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --bcc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -b) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --header) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -h) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --body) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -B) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --signature) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -S) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__template__fwd) + opts=" -V -s -f -t -c -b -h -B -S --help --version --subject --from --to --cc --bcc --header --body --signature " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --subject) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --from) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --to) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -t) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --bcc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -b) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --header) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -h) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --body) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -B) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --signature) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -S) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__template__help) + opts=" -h -V --help --version " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__template__n) + opts=" -V -s -f -t -c -b -h -B -S --help --version --subject --from --to --cc --bcc --header --body --signature " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --subject) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --from) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --to) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -t) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --bcc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -b) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --header) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -h) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --body) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -B) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --signature) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -S) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__template__new) + opts=" -V -s -f -t -c -b -h -B -S --help --version --subject --from --to --cc --bcc --header --body --signature " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --subject) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --from) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --to) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -t) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --bcc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -b) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --header) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -h) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --body) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -B) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --signature) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -S) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__template__r) + opts=" -A -V -s -f -t -c -b -h -B -S --all --help --version --subject --from --to --cc --bcc --header --body --signature " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --subject) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --from) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --to) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -t) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --bcc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -b) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --header) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -h) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --body) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -B) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --signature) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -S) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__template__re) + opts=" -A -V -s -f -t -c -b -h -B -S --all --help --version --subject --from --to --cc --bcc --header --body --signature " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --subject) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --from) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --to) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -t) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --bcc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -b) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --header) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -h) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --body) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -B) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --signature) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -S) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__template__rep) + opts=" -A -V -s -f -t -c -b -h -B -S --all --help --version --subject --from --to --cc --bcc --header --body --signature " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --subject) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --from) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --to) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -t) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --bcc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -b) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --header) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -h) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --body) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -B) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --signature) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -S) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__template__reply) + opts=" -A -V -s -f -t -c -b -h -B -S --all --help --version --subject --from --to --cc --bcc --header --body --signature " + if [[ ${cur} == -* || ${COMP_CWORD} -eq 3 ]] ; then + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + fi + case "${prev}" in + + --subject) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -s) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --from) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -f) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --to) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -t) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --cc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -c) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --bcc) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -b) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --header) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -h) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --body) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -B) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + --signature) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + -S) + COMPREPLY=($(compgen -f "${cur}")) + return 0 + ;; + *) + COMPREPLY=() + ;; + esac + COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) + return 0 + ;; + himalaya__template__save) + opts=" -h -V -a --help --version --attachment