refactor: Normalize shebang of scripts to source

This commit is contained in:
Koichi Murase 2022-01-15 19:00:35 +09:00
parent 088eee2abd
commit c3bcc5c6d2
159 changed files with 159 additions and 159 deletions

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# ---------------------------------------------------------------------------
alias perm='stat --printf "%a %n \n "' # perm: Show permission of target in number

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# ---------------------------------------------------------------------------
#
# Description: This file holds all general BASH aliases

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# ---------------------------------------------------------------------------
# Directory Listing aliases

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# ---------------------------------------------------------------------------
#
# Description: This file holds many useful BASH aliases and save our lives!

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# apm-bash-completion is written by Ugur Ozyilmazel
# repo: https://github.com/vigo/apm-bash-completion

@ -1,2 +1,2 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
[[ -x "$(which aws_completer)" ]] &>/dev/null && complete -C "$(which aws_completer)" aws

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
if _omb_util_command_exists brew; then
_omb_completion_brew_prefix=$(brew --prefix)
if [[ $_omb_completion_brew_prefix ]]; then

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# bash completion for the `bundle` command.
#
# Copyright (c) 2011-2013 Daniel Luz <dev at mernen dot com>.

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Bash completion support for Capistrano.
export COMP_WORDBREAKS=${COMP_WORDBREAKS/\:/}

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
_composer()
{

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
which register-python-argcomplete &> /dev/null \
&& eval "$(register-python-argcomplete conda)" \
|| echo "Please install argcomplete to use conda completion" > /dev/null

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# defaults
# Bash command line completion for defaults
#

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Bash completion support for the 'dirs' plugin (commands G, R).
_dirs-complete() {

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# #########################################################################
# This bash script adds tab-completion feature to django-admin.py and
# manage.py.

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
#
# bash completion for docker-compose
#

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
#
# bash completion file for docker-machine commands
#

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
#
# bash completion file for core docker commands
#

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
#
# bash completion support for Drush:
# https://github.com/drush-ops/drush

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
#
# Bash completion support for Fabric (http://fabfile.org/)
#

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Completion for gem
_installcomp() {

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# hub tab-completion script for bash.
# This script complements the completion script that ships with git.

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
#
# git-flow-completion
# ===================

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
#
# git-flow-completion
# ===================

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# bash completion for go tool
# https://github.com/thomasf/go-bash-completion

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
function __gradle {
local cur=${COMP_WORDS[COMP_CWORD]}
local tasks=''

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# grunt-cli
# http://gruntjs.com/

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Borrowed from grunt-cli
# http://gruntjs.com/
#

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Bash completion script for homesick
#
# The homebrew bash completion script was used as inspiration.

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# hub tab-completion script for bash.
# This script complements the completion script that ships with git.

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Completions for JBoss Application Server 7 (EAP 6)
# VERSION: 0.6
# DATE: 2012-10-30

@ -1,2 +1,2 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
[[ -x "$(which jungle)" ]] &>/dev/null && eval "$(_JUNGLE_COMPLETE=source jungle)"

@ -1,2 +1,2 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
which kontena &> /dev/null && . "$( kontena whoami --bash-completion-path )"

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# kubectl (Kubernetes CLI) completion

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Add completion for Makefile
# see http://stackoverflow.com/a/38415982/1472048
complete -W "\$(shopt -u nullglob; shopt -s nocaseglob; command grep -oE '^[a-zA-Z0-9_-]+:([^=]|\$)' *makefile 2>/dev/null | command sed 's/[^a-zA-Z0-9_-]*\$//')" make

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Bash completion support for maven
# inspired from :
# - https://github.com/juven/maven-bash-completion

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# minikube (Kubernetes CLI) completion

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# npm (Node Package Manager) completion
# https://docs.npmjs.com/cli/completion

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# nvm (Node Version Manager) completion

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Packer (http://www.packer.io) bash completion
#

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# pip bash completion start
_pip_completion()

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# pip bash completion start
_pip_completion()

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
_pj() {
[ -z "$PROJECT_PATHS" ] && return
shift

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Bash completion support for Rake, Ruby Make.
export COMP_WORDBREAKS=${COMP_WORDBREAKS/\:/}

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# written by David Pravec
# - feel free to /msg alekibango on IRC if you want to talk about this file

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
_sdkman_complete()
{
local CANDIDATES

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Bash completion support for ssh.
export COMP_WORDBREAKS=${COMP_WORDBREAKS/\:/}

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# ------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Loads the system's Bash completion modules.
# If Homebrew is installed (OS X), its Bash completion modules are loaded.

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Bash Terraform completion
_terraform()

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
__kitchen_instance_list () {
# cache to .kitchen.list.yml
if [[ .kitchen.yml -nt .kitchen.list.yml || .kitchen.local.yml -nt .kitchen.list.yml ]]; then

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# tmux completion
# See: http://www.debian-administration.org/articles/317 for how to write more.

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# link: https://github.com/ginatrapani/todo.txt-cli/blob/master/todo_completion
_todo()

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# (The MIT License)
#

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# ---------------------------------------------------------------------------
# vault-bash-completion
#

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
_vboxmanage_realopts() {
echo $(vboxmanage|grep -i vboxmanage|cut -d' ' -f2|grep '\['|tr -s '[\[\|\]\n' ' ')
echo " "

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#! bash oh-my-bash.module
# ---------------------------------------------------------------------------
#
# Description: This file holds all base BASH functions

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#! bash oh-my-bash.module
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#! bash oh-my-bash.module
# Common directories functions
alias cd..='cd ../' # Go back 1 directory level (for fast typers)
alias ..='cd ../' # Go back 1 directory level

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#! bash oh-my-bash.module
function bash_stats() {
fc -l 1 | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n20
}

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#! bash oh-my-bash.module
# Outputs current branch info in prompt format
function git_prompt_info() {
local ref

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#! bash oh-my-bash.module
# is x grep argument available?
_omb_grep_flag_available() {

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#! bash oh-my-bash.module
shopt -s histappend # append to bash_history if Terminal.app quits
## Command history configuration

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#! bash oh-my-bash.module
## jobs
#setopt long_list_jobs

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#! bash oh-my-bash.module
#
#/ Mo is a mustache template rendering software written in bash. It inserts
#/ environment variables into templates.

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#! bash oh-my-bash.module
# get the node.js version
function nvm_prompt_info() {
[[ -f "$NVM_DIR/nvm.sh" ]] || return

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#! bash oh-my-bash.module
# deprecate functions

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#! bash oh-my-bash.module
# Various shell options collected in single file
# taken from bash-sensible and other sources

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#! bash oh-my-bash.module
# A script to make using 256 colors in bash less painful.
# P.C. Shyamshankar <sykora@lucentbeing.com>
# Copied from http://github.com/sykora/etc/blob/master/zsh/functions/spectrum/

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#! bash oh-my-bash.module
#
# Move a process to background and track its progress in a smoothier way.
# Could be use if $TERM not set.

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#! bash oh-my-bash.module
# colored ls
export LSCOLORS='Gxfxcxdxdxegedabagacad'

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#! bash oh-my-bash.module
############################---Description---###################################
# #
# Summary : A collection of handy utilities and functions for bash #

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Functions
function ansible-version(){
ansible --version

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# aws.plugin.sh
# Author: Michael Anckaert <michael.anckaert@sinax.be>
# Based on oh-my-zsh AWS plugin

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Copyright (c) 2015, Toan Nguyen - https://nntoan.github.io
# All rights reserved.
#

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Bug: https://github.com/ohmybash/oh-my-bash/issues/68
if ! command -v "command_exists" >/dev/null; then command_exists() { command -v "$1" >/dev/null ; } fi

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
alias brewp='brew pin'
alias brews='brew list -1'

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# bu.plugin.sh
# Author: Taleeb Midi <taleebmidi@gmail.com>
# Based on oh-my-zsh AWS plugin

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Initialize fasd, without setting up the prompt hook, which
# we want to be handled by oh-my-bash.

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
#
# Functions
#

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# @chopnico 2021
if [ -d ~/.goenv ]; then

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
alias gob='go build'
alias goc='go clean'

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# This command is used a LOT both below and in daily life
alias k=kubectl

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Install dependencies globally
alias npmg="npm i -g "

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Set NVM_DIR if it isn't already defined
[[ -z "$NVM_DIR" ]] && export NVM_DIR="$HOME/.nvm"

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
############################---Description---###################################
# #
# Summary : Show a progress bar GUI on terminal platform #

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# @chopnico 2021
if [ -d ~/.pyenv ]; then

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Set SDKMAN_DIR if it isn't already defined
[[ ${SDKMAN_DIR-} ]] || export SDKMAN_DIR=~/.sdkman

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# @chopnico 2021
#
# tmux-autoattach.plugin.sh

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Check if zoxide is installed
if _omb_util_command_exists zoxide; then

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
SCM_THEME_PROMPT_DIRTY=" ${red}"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}"
SCM_THEME_PROMPT_PREFIX=" |"

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# vim: ft=bash ts=2 sw=2 sts=2
#
# agnoster's Theme - https://gist.github.com/3712874

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Axin Bash Prompt, inspired by theme "Sexy" and "Bobby"
# thanks to them

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
SCM_THEME_PROMPT_DIRTY=" ${red}"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}"
SCM_THEME_PROMPT_PREFIX=" |"

@ -1,4 +1,4 @@
#!/usr/bin/env bash
#! bash oh-my-bash.module
CLOCK_CHAR_THEME_PROMPT_PREFIX=''
CLOCK_CHAR_THEME_PROMPT_SUFFIX=''

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Set term to 256color mode, if 256color is not supported, colors won't work properly
if [[ $COLORTERM = gnome-* && $TERM = xterm ]] && infocmp gnome-256color >/dev/null 2>&1; then

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
SCM_THEME_PROMPT_DIRTY=" ${red}"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}"
SCM_THEME_PROMPT_PREFIX=" |"

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
SCM_THEME_PROMPT_DIRTY=" ${red}"
SCM_THEME_PROMPT_CLEAN=" ${bold_green}"

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
# Brainy Bash Prompt for Bash-it
# by MunifTanjim

@ -1,4 +1,4 @@
# -*- mode: bash -*-
#! bash oh-my-bash.module
SCM_THEME_PROMPT_PREFIX=""
SCM_THEME_PROMPT_SUFFIX=""

Some files were not shown because too many files have changed in this diff Show More