From 43701f05901b1077acbb0a6aa706f1e30c1ea1aa Mon Sep 17 00:00:00 2001 From: Kristjan Komlosi Date: Thu, 5 May 2022 22:20:02 +0200 Subject: [PATCH] add bash-it --- dot_bash_it/LICENSE | 21 + dot_bash_it/aliases/available/ag.aliases.bash | 12 + .../aliases/available/ansible.aliases.bash | 5 + .../aliases/available/apt.aliases.bash | 27 + .../aliases/available/atom.aliases.bash | 7 + .../aliases/available/bash-it.aliases.bash | 23 + .../aliases/available/bolt.aliases.bash | 8 + .../aliases/available/bundler.aliases.bash | 9 + .../aliases/available/clipboard.aliases.bash | 16 + .../aliases/available/composer.aliases.bash | 39 + .../aliases/available/curl.aliases.bash | 22 + .../aliases/available/dnf.aliases.bash | 17 + .../available/docker-compose.aliases.bash | 10 + .../aliases/available/docker.aliases.bash | 43 + .../aliases/available/emacs.aliases.bash | 16 + .../aliases/available/fuck.aliases.bash | 10 + .../aliases/available/general.aliases.bash | 96 ++ .../aliases/available/git.aliases.bash | 207 ++++ .../aliases/available/gitsvn.aliases.bash | 7 + .../aliases/available/heroku.aliases.bash | 34 + dot_bash_it/aliases/available/hg.aliases.bash | 6 + .../available/homebrew-cask.aliases.bash | 11 + .../aliases/available/homebrew.aliases.bash | 13 + .../aliases/available/homesick.aliases.bash | 23 + .../aliases/available/jitsu.aliases.bash | 49 + .../aliases/available/kubectl.aliases.bash | 20 + .../aliases/available/laravel.aliases.bash | 74 ++ .../aliases/available/maven.aliases.bash | 14 + .../aliases/available/msys2.aliases.bash | 14 + .../aliases/available/node.aliases.bash | 8 + .../aliases/available/npm.aliases.bash | 43 + .../aliases/available/osx.aliases.bash | 57 + .../aliases/available/phoenix.aliases.bash | 49 + .../aliases/available/puppet.aliases.bash | 9 + .../aliases/available/pyrocms.aliases.bash | 152 +++ .../aliases/available/rails.aliases.bash | 22 + .../aliases/available/svn.aliases.bash | 15 + .../aliases/available/systemd.aliases.bash | 22 + .../aliases/available/terraform.aliases.bash | 8 + .../aliases/available/terragrunt.aliases.bash | 13 + .../aliases/available/textmate.aliases.bash | 10 + .../aliases/available/tmux.aliases.bash | 6 + .../available/todo.txt-cli.aliases.bash | 8 + .../aliases/available/uuidgen.aliases.bash | 11 + .../aliases/available/vagrant.aliases.bash | 22 + .../aliases/available/vault.aliases.bash | 15 + .../aliases/available/vim.aliases.bash | 14 + .../aliases/available/yarn.aliases.bash | 26 + dot_bash_it/clean_files.txt | 174 +++ .../available/aliases.completion.bash | 112 ++ .../completion/available/apm.completion.bash | 4 + .../available/awless.completion.bash | 5 + .../available/awscli.completion.bash | 5 + .../available/bash-it.completion.bash | 95 ++ .../completion/available/brew.completion.bash | 30 + .../available/bundler.completion.bash | 273 +++++ .../available/capistrano.completion.bash | 24 + .../available/cargo.completion.bash | 6 + .../available/composer.completion.bash | 129 ++ .../available/conda.completion.bash | 11 + .../available/consul.completion.bash | 7 + .../available/crystal.completion.bash | 1 + .../completion/available/dart.completion.bash | 48 + .../available/defaults.completion.bash | 5 + .../completion/available/dirs.completion.bash | 15 + .../available/django.completion.bash | 4 + .../available/dmidecode.completion.bash | 22 + .../available/docker-machine.completion.bash | 3 + .../available/docker.completion.bash | 24 + .../available/dotnet.completion.bash | 14 + .../available/drush.completion.bash | 2 + .../executable_docker-compose.completion.bash | 688 +++++++++++ .../available/export.completion.bash | 1 + .../available/fabric.completion.bash | 133 +++ .../available/flutter.completion.bash | 5 + .../available/gcloud.completion.bash | 14 + .../completion/available/gem.completion.bash | 35 + .../completion/available/git.completion.bash | 42 + .../available/git_flow.completion.bash | 178 +++ .../available/git_flow_avh.completion.bash | 511 ++++++++ .../available/github-cli.completion.bash | 9 + .../completion/available/go.completion.bash | 15 + .../available/gradle.completion.bash | 316 +++++ .../available/grunt.completion.bash | 75 ++ .../completion/available/gulp.completion.bash | 50 + .../completion/available/helm.completion.bash | 7 + .../available/homesick.completion.bash | 2 + .../completion/available/hub.completion.bash | 408 +++++++ .../available/invoke.completion.bash | 54 + .../available/jboss5.completion.bash | 4 + .../available/jboss7.completion.bash | 4 + .../available/jungle.completion.bash | 7 + .../completion/available/kind.completion.bash | 5 + .../available/knife.completion.bash | 205 ++++ .../available/kontena.completion.bash | 5 + .../available/kubectl.completion.bash | 7 + .../available/laravel.completion.bash | 16 + .../available/lerna.completion.bash | 22 + .../available/makefile.completion.bash | 34 + .../available/maven.completion.bash | 36 + .../available/minikube.completion.bash | 6 + .../available/minishift.completion.bash | 1 + .../completion/available/ng.completion.bash | 8 + .../available/ngrok.completion.bash | 47 + .../available/notify-send.completion.bash | 21 + .../completion/available/npm.completion.bash | 7 + .../completion/available/nvm.completion.bash | 8 + .../available/openshift.completion.bash | 1 + .../available/packer.completion.bash | 7 + .../completion/available/pew.completion.bash | 6 + .../completion/available/pip.completion.bash | 20 + .../completion/available/pip3.completion.bash | 20 + .../available/pipenv.completion.bash | 4 + .../completion/available/pipx.completion.bash | 6 + .../available/projects.completion.bash | 46 + .../completion/available/rake.completion.bash | 17 + .../available/rustup.completion.bash | 7 + .../completion/available/rvm.completion.bash | 5 + .../completion/available/salt.completion.bash | 343 ++++++ .../available/sdkman.completion.bash | 86 ++ .../available/sqlmap.completion.bash | 168 +++ .../completion/available/ssh.completion.bash | 40 + .../completion/available/svn.completion.bash | 40 + .../available/system.completion.bash | 52 + .../available/terraform.completion.bash | 10 + .../available/test_kitchen.completion.bash | 30 + .../completion/available/tmux.completion.bash | 186 +++ .../completion/available/todo.completion.bash | 2 + .../available/travis.completion.bash | 10 + .../available/vagrant.completion.bash | 163 +++ .../available/vault.completion.bash | 7 + .../available/virsh.completion.bash | 2 + .../available/virtualbox.completion.bash | 222 ++++ .../available/vuejs.completion.bash | 61 + .../available/wpscan.completion.bash | 16 + dot_bash_it/custom/example.bash | 4 + dot_bash_it/docs/Makefile | 20 + dot_bash_it/docs/README.md | 64 + dot_bash_it/docs/commands/doctor.rst | 20 + dot_bash_it/docs/commands/index.rst | 16 + dot_bash_it/docs/commands/profile.rst | 31 + dot_bash_it/docs/commands/reload.rst | 23 + dot_bash_it/docs/commands/search.rst | 59 + dot_bash_it/docs/commands/update.rst | 38 + dot_bash_it/docs/conf.py | 57 + dot_bash_it/docs/contributing.rst | 115 ++ dot_bash_it/docs/custom.rst | 18 + dot_bash_it/docs/development.rst | 180 +++ dot_bash_it/docs/help_screens.rst | 13 + dot_bash_it/docs/index.rst | 44 + dot_bash_it/docs/installation.rst | 58 + dot_bash_it/docs/make.bat | 35 + dot_bash_it/docs/misc.rst | 10 + dot_bash_it/docs/proxy_support.rst | 43 + dot_bash_it/docs/requirements.txt | 4 + dot_bash_it/docs/test.rst | 46 + dot_bash_it/docs/themes-list/atomic.rst | 200 ++++ dot_bash_it/docs/themes-list/barbuk.rst | 166 +++ dot_bash_it/docs/themes-list/bira.rst | 12 + dot_bash_it/docs/themes-list/brainy.rst | 145 +++ dot_bash_it/docs/themes-list/codeword.rst | 28 + dot_bash_it/docs/themes-list/easy.rst | 14 + dot_bash_it/docs/themes-list/index.rst | 599 ++++++++++ .../themes-list/nwinkler_random_colors.png | Bin 0 -> 43510 bytes .../themes-list/nwinkler_random_colors.rst | 39 + dot_bash_it/docs/themes-list/oh-my-posh.rst | 15 + .../docs/themes-list/powerline-base.rst | 130 +++ .../docs/themes-list/powerline-multiline.rst | 36 + .../docs/themes-list/powerline-naked.rst | 9 + .../docs/themes-list/powerline-plain.rst | 14 + dot_bash_it/docs/themes-list/powerline.rst | 13 + dot_bash_it/docs/themes-list/radek.rst | 25 + dot_bash_it/docs/themes-list/redline.png | Bin 0 -> 984714 bytes dot_bash_it/docs/themes-list/redline.rst | 56 + dot_bash_it/docs/themes.rst | 93 ++ dot_bash_it/docs/troubleshooting.rst | 16 + dot_bash_it/docs/uninstalling.rst | 14 + dot_bash_it/docs/vcs_user.rst | 200 ++++ dot_bash_it/dot_ackrc | 1 + dot_bash_it/dot_editorconfig | 36 + dot_bash_it/dot_git/HEAD | 1 + dot_bash_it/dot_git/branches/.keep | 0 dot_bash_it/dot_git/config | 11 + dot_bash_it/dot_git/description | 1 + .../hooks/executable_applypatch-msg.sample | 15 + .../hooks/executable_commit-msg.sample | 24 + .../executable_fsmonitor-watchman.sample | 173 +++ .../hooks/executable_post-update.sample | 8 + .../hooks/executable_pre-applypatch.sample | 14 + .../hooks/executable_pre-commit.sample | 49 + .../hooks/executable_pre-merge-commit.sample | 13 + .../dot_git/hooks/executable_pre-push.sample | 53 + .../hooks/executable_pre-rebase.sample | 169 +++ .../hooks/executable_pre-receive.sample | 24 + .../executable_prepare-commit-msg.sample | 42 + .../hooks/executable_push-to-checkout.sample | 78 ++ .../dot_git/hooks/executable_update.sample | 128 ++ dot_bash_it/dot_git/index | Bin 0 -> 52251 bytes dot_bash_it/dot_git/info/exclude | 6 + dot_bash_it/dot_git/logs/HEAD | 1 + dot_bash_it/dot_git/logs/refs/heads/master | 1 + .../dot_git/logs/refs/remotes/origin/HEAD | 1 + dot_bash_it/dot_git/objects/info/.keep | 0 ...fb1a9f819f443a8ea281815d8b46284939d414.idx | Bin 0 -> 17732 bytes ...b1a9f819f443a8ea281815d8b46284939d414.pack | Bin 0 -> 1363666 bytes dot_bash_it/dot_git/packed-refs | 2 + dot_bash_it/dot_git/refs/heads/master | 1 + dot_bash_it/dot_git/refs/remotes/origin/HEAD | 1 + dot_bash_it/dot_git/refs/tags/.keep | 0 dot_bash_it/dot_git/shallow | 1 + dot_bash_it/dot_gitattributes | 9 + .../dot_github/ISSUE_TEMPLATE/bug_report.yml | 85 ++ .../dot_github/ISSUE_TEMPLATE/config.yml | 5 + .../ISSUE_TEMPLATE/feature_request.yml | 34 + .../dot_github/PULL_REQUEST_TEMPLATE.md | 30 + dot_bash_it/dot_github/no-response.yml | 11 + dot_bash_it/dot_github/workflows/ci.yml | 59 + dot_bash_it/dot_gitignore | 24 + dot_bash_it/dot_gitmodules | 16 + dot_bash_it/dot_pre-commit-config.yaml | 50 + dot_bash_it/dot_readthedocs.yml | 10 + .../symlink_150---general.aliases.bash | 1 + .../enabled/symlink_250---base.plugin.bash | 1 + .../symlink_325---system.completion.bash | 1 + .../symlink_350---bash-it.completion.bash | 1 + .../symlink_800---aliases.completion.bash | 1 + dot_bash_it/executable_bash_it.sh | 110 ++ dot_bash_it/executable_install.sh | 238 ++++ dot_bash_it/executable_lint_clean_files.sh | 23 + dot_bash_it/executable_uninstall.sh | 36 + .../hooks/executable_check-clean-files-txt.sh | 39 + dot_bash_it/hooks/executable_dot-bash.sh | 21 + dot_bash_it/hooks/executable_dot-sh.sh | 21 + dot_bash_it/lib/appearance.bash | 18 + dot_bash_it/lib/colors.bash | 91 ++ dot_bash_it/lib/command_duration.bash | 61 + dot_bash_it/lib/helpers.bash | 1040 +++++++++++++++++ dot_bash_it/lib/history.bash | 49 + dot_bash_it/lib/log.bash | 100 ++ dot_bash_it/lib/preexec.bash | 75 ++ dot_bash_it/lib/preview.bash | 34 + dot_bash_it/lib/search.bash | 373 ++++++ dot_bash_it/lib/utilities.bash | 198 ++++ .../available/alias-completion.plugin.bash | 5 + .../plugins/available/autojump.plugin.bash | 14 + dot_bash_it/plugins/available/aws.plugin.bash | 113 ++ .../plugins/available/base.plugin.bash | 185 +++ .../plugins/available/basher.plugin.bash | 16 + .../plugins/available/battery.plugin.bash | 130 +++ .../plugins/available/blesh.plugin.bash | 19 + .../plugins/available/boot2docker.plugin.bash | 10 + .../plugins/available/browser.plugin.bash | 76 ++ .../plugins/available/chruby-auto.plugin.bash | 5 + .../plugins/available/chruby.plugin.bash | 4 + .../plugins/available/cht-sh.plugin.bash | 21 + .../available/cmd-returned-notify.plugin.bash | 16 + .../plugins/available/colors.plugin.bash | 197 ++++ .../plugins/available/direnv.plugin.bash | 7 + .../plugins/available/dirs.plugin.bash | 119 ++ .../available/docker-compose.plugin.bash | 20 + .../available/docker-machine.plugin.bash | 5 + .../plugins/available/docker.plugin.bash | 81 ++ .../available/edit-mode-emacs.plugin.bash | 4 + .../available/edit-mode-vi.plugin.bash | 4 + .../plugins/available/explain.plugin.bash | 23 + .../plugins/available/extract.plugin.bash | 73 ++ .../plugins/available/fasd.plugin.bash | 6 + dot_bash_it/plugins/available/fzf.plugin.bash | 42 + dot_bash_it/plugins/available/gif.plugin.bash | 321 +++++ .../plugins/available/git-subrepo.plugin.bash | 7 + dot_bash_it/plugins/available/git.plugin.bash | 316 +++++ .../plugins/available/gitstatus.plugin.bash | 26 + dot_bash_it/plugins/available/go.plugin.bash | 36 + .../plugins/available/goenv.plugin.bash | 42 + .../plugins/available/gradle.plugin.bash | 12 + dot_bash_it/plugins/available/hg.plugin.bash | 25 + .../available/history-eternal.plugin.bash | 22 + .../available/history-search.plugin.bash | 9 + .../history-substring-search.plugin.bash | 9 + .../plugins/available/history.plugin.bash | 36 + dot_bash_it/plugins/available/hub.plugin.bash | 7 + .../plugins/available/java.plugin.bash | 11 + .../plugins/available/javascript.plugin.bash | 41 + .../plugins/available/jekyll.plugin.bash | 288 +++++ .../plugins/available/jenv.plugin.bash | 22 + .../plugins/available/jgitflow.plugin.bash | 47 + .../plugins/available/jump.plugin.bash | 12 + .../plugins/available/latex.plugin.bash | 19 + .../available/less-pretty-cat.plugin.bash | 23 + dot_bash_it/plugins/available/man.plugin.bash | 14 + .../plugins/available/nginx.plugin.bash | 55 + .../plugins/available/node.plugin.bash | 14 + .../plugins/available/nodenv.plugin.bash | 10 + dot_bash_it/plugins/available/nvm.plugin.bash | 31 + .../available/osx-timemachine.plugin.bash | 95 ++ dot_bash_it/plugins/available/osx.plugin.bash | 132 +++ .../plugins/available/pack.plugin.bash | 621 ++++++++++ .../plugins/available/percol.plugin.bash | 32 + .../plugins/available/pipsi.plugin.bash | 7 + .../plugins/available/plenv.plugin.bash | 16 + .../plugins/available/postgres.plugin.bash | 86 ++ .../plugins/available/powerline.plugin.bash | 26 + .../plugins/available/projects.plugin.bash | 57 + .../plugins/available/proxy.plugin.bash | 369 ++++++ .../plugins/available/pyenv.plugin.bash | 34 + .../plugins/available/python.plugin.bash | 32 + .../plugins/available/rails.plugin.bash | 18 + .../plugins/available/rbenv.plugin.bash | 10 + .../plugins/available/ruby.plugin.bash | 17 + dot_bash_it/plugins/available/rvm.plugin.bash | 31 + .../plugins/available/sdkman.plugin.bash | 8 + dot_bash_it/plugins/available/ssh.plugin.bash | 29 + .../plugins/available/sshagent.plugin.bash | 143 +++ .../plugins/available/subversion.plugin.bash | 21 + .../plugins/available/sudo.plugin.bash | 22 + .../plugins/available/textmate.plugin.bash | 9 + .../plugins/available/thefuck.plugin.bash | 9 + .../plugins/available/tmux.plugin.bash | 6 + .../plugins/available/tmuxinator.plugin.bash | 4 + .../plugins/available/todo.plugin.bash | 6 + .../plugins/available/virtualenv.plugin.bash | 45 + .../plugins/available/xterm.plugin.bash | 45 + .../plugins/available/z_autoenv.plugin.bash | 45 + .../plugins/available/zoxide.plugin.bash | 9 + dot_bash_it/profiles/default.bash_it | 12 + dot_bash_it/scripts/reloader.bash | 52 + .../executable_bash_profile.template.bash | 84 ++ dot_bash_it/test/bash_it/bash_it.bats | 343 ++++++ .../test/completion/aliases.completion.bats | 30 + .../executable_bash-it.completion.bats | 359 ++++++ dot_bash_it/test/executable_run | 51 + .../bash_it/aliases/available/a.aliases.bash | 3 + .../bash_it/aliases/available/b.aliases.bash | 3 + .../bash_it/plugins/available/c.plugin.bash | 3 + .../profiles/test-bad-component.bash_it | 12 + .../bash_it/profiles/test-bad-type.bash_it | 12 + .../test/fixtures/svn/broken/executable_svn | 4 + .../test/fixtures/svn/working/executable_svn | 10 + dot_bash_it/test/install/install.bats | 88 ++ dot_bash_it/test/install/uninstall.bats | 61 + dot_bash_it/test/lib/composure.bats | 13 + dot_bash_it/test/lib/helpers.bats | 732 ++++++++++++ dot_bash_it/test/lib/log.bats | 84 ++ dot_bash_it/test/lib/preexec.bats | 164 +++ dot_bash_it/test/lib/search.bats | 68 ++ dot_bash_it/test/lib/utilities.bats | 83 ++ dot_bash_it/test/lint-requirements.txt | 1 + dot_bash_it/test/plugins/base.plugin.bats | 76 ++ dot_bash_it/test/plugins/battery.plugin.bats | 384 ++++++ .../plugins/cmd-returned-notify.plugin.bats | 41 + dot_bash_it/test/plugins/go.plugin.bats | 74 ++ dot_bash_it/test/plugins/ruby.plugin.bats | 31 + dot_bash_it/test/plugins/xterm.plugin.bats | 42 + dot_bash_it/test/test_helper.bash | 117 ++ dot_bash_it/test/themes/base.theme.bats | 73 ++ dot_bash_it/test/themes/base.theme.git.bats | 387 ++++++ dot_bash_it/test/themes/base.theme.svn.bats | 106 ++ dot_bash_it/test_lib/bats-assert/.keep | 0 dot_bash_it/test_lib/bats-core/.keep | 0 dot_bash_it/test_lib/bats-file/.keep | 0 dot_bash_it/test_lib/bats-support/.keep | 0 dot_bash_it/themes/90210/90210.theme.bash | 21 + .../themes/agnoster/agnoster.theme.bash | 423 +++++++ dot_bash_it/themes/atomic/atomic.theme.bash | 324 +++++ dot_bash_it/themes/axin/axin.theme.bash | 38 + dot_bash_it/themes/bakke/bakke.theme.bash | 27 + dot_bash_it/themes/barbuk/barbuk.theme.bash | 203 ++++ dot_bash_it/themes/barbuk/symlink_README.rst | 1 + dot_bash_it/themes/base.theme.bash | 585 ++++++++++ .../binaryanomaly/binaryanomaly.theme.bash | 86 ++ dot_bash_it/themes/bira/bira.theme.bash | 26 + .../bobby-python/bobby-python.theme.bash | 26 + dot_bash_it/themes/bobby/bobby.theme.bash | 40 + dot_bash_it/themes/brainy/brainy.theme.bash | 303 +++++ dot_bash_it/themes/brunton/brunton.theme.bash | 31 + dot_bash_it/themes/candy/candy.theme.bash | 14 + dot_bash_it/themes/clean/clean.theme.bash | 19 + .../themes/codeword/codeword.theme.bash | 25 + .../themes/cooperkid/cooperkid.theme.bash | 39 + dot_bash_it/themes/cupcake/cupcake.theme.bash | 79 ++ dot_bash_it/themes/demula/demula.theme.bash | 128 ++ dot_bash_it/themes/dos/dos.theme.bash | 1 + .../themes/doubletime/doubletime.theme.bash | 41 + .../doubletime_multiline.theme.bash | 16 + .../doubletime_multiline_pyonly.theme.bash | 16 + .../dulcie/executable_dulcie.theme.bash | 98 ++ dot_bash_it/themes/duru/duru.theme.bash | 24 + dot_bash_it/themes/easy/easy.theme.bash | 22 + dot_bash_it/themes/elixr/elixr.theme.bash | 23 + dot_bash_it/themes/emperor/emperor.theme.bash | 42 + dot_bash_it/themes/envy/envy.theme.bash | 19 + .../themes/essential/essential.theme.bash | 93 ++ dot_bash_it/themes/font/font.theme.bash | 64 + .../themes/gallifrey/gallifrey.theme.bash | 33 + dot_bash_it/themes/githelpers.theme.bash | 173 +++ dot_bash_it/themes/gitline/gitline.theme.bash | 71 ++ .../themes/gitline/powerline.base.bash | 233 ++++ .../themes/hawaii50/hawaii50.theme.bash | 200 ++++ dot_bash_it/themes/iterate/iterate.theme.bash | 59 + dot_bash_it/themes/kitsune/kitsune.theme.bash | 38 + dot_bash_it/themes/liquidprompt/dot_gitignore | 1 + .../liquidprompt/liquidprompt.theme.bash | 76 ++ dot_bash_it/themes/luan/luan.theme.bash | 33 + dot_bash_it/themes/mairan/mairan.theme.bash | 120 ++ dot_bash_it/themes/mbriggs/mbriggs.theme.bash | 34 + dot_bash_it/themes/metal/metal.theme.bash | 81 ++ dot_bash_it/themes/minimal/minimal.theme.bash | 12 + .../themes/modern-t/modern-t.theme.bash | 54 + .../themes/modern-time/modern-time.theme.bash | 54 + dot_bash_it/themes/modern/modern.theme.bash | 55 + dot_bash_it/themes/morris/morris.theme.bash | 28 + dot_bash_it/themes/n0qorg/n0qorg.theme.bash | 26 + dot_bash_it/themes/newin/newin.theme.bash | 13 + dot_bash_it/themes/norbu/norbu.theme.bash | 29 + .../themes/nwinkler/nwinkler.theme.bash | 45 + .../nwinkler_random_colors.theme.bash | 112 ++ .../themes/oh-my-posh/oh-my-posh.theme.bash | 8 + dot_bash_it/themes/p4helpers.theme.bash | 45 + dot_bash_it/themes/parrot/parrot.theme.bash | 37 + dot_bash_it/themes/pete/pete.theme.bash | 23 + .../powerline-multiline.base.bash | 106 ++ .../powerline-multiline.theme.bash | 105 ++ .../powerline-naked/powerline-naked.base.bash | 35 + .../powerline-naked.theme.bash | 97 ++ .../powerline-plain/powerline-plain.base.bash | 61 + .../powerline-plain.theme.bash | 94 ++ .../themes/powerline/powerline.base.bash | 308 +++++ .../themes/powerline/powerline.theme.bash | 102 ++ .../themes/powerturk/powerturk.theme.bash | 184 +++ dot_bash_it/themes/primer/primer.theme.bash | 11 + dot_bash_it/themes/pro/pro.theme.bash | 22 + dot_bash_it/themes/pure/pure.theme.bash | 37 + dot_bash_it/themes/purity/purity.theme.bash | 44 + dot_bash_it/themes/radek/radek.theme.bash | 19 + .../rainbowbrite/rainbowbrite.theme.bash | 27 + dot_bash_it/themes/ramses/ramses.theme.bash | 99 ++ dot_bash_it/themes/rana/rana.theme.bash | 214 ++++ dot_bash_it/themes/redline/redline.theme.bash | 63 + .../themes/rjorgenson/rjorgenson.theme.bash | 91 ++ .../robbyrussell/robbyrussell.theme.bash | 25 + dot_bash_it/themes/roderik/roderik.theme.bash | 17 + dot_bash_it/themes/sexy/sexy.theme.bash | 56 + dot_bash_it/themes/simple/simple.theme.bash | 25 + dot_bash_it/themes/sirup/sirup.theme.bash | 22 + dot_bash_it/themes/slick/slick.theme.bash | 76 ++ .../themes/standard/standard.theme.bash | 24 + dot_bash_it/themes/tonka/tonka.theme.bash | 61 + dot_bash_it/themes/tonotdo/tonotdo.theme.bash | 13 + dot_bash_it/themes/tylenol/tylenol.theme.bash | 20 + dot_bash_it/themes/wanelo/wanelo.theme.bash | 26 + dot_bash_it/themes/zitron/zitron.theme.bash | 24 + dot_bash_it/themes/zork/zork.theme.bash | 92 ++ dot_bash_it/vendor/dot_gitattributes | 2 + .../vendor/github.com/django/django/AUTHORS | 982 ++++++++++++++++ .../vendor/github.com/django/django/LICENSE | 27 + .../github.com/django/django/LICENSE.python | 265 +++++ .../github.com/django/django/extras/Makefile | 9 + .../django/django/extras/README.TXT | 1 + .../extras/executable_django_bash_completion | 71 ++ .../github.com/erichs/composure/History.md | 90 ++ .../github.com/erichs/composure/LICENSE | 16 + .../github.com/erichs/composure/Makefile | 10 + .../github.com/erichs/composure/README.md | 242 ++++ .../github.com/erichs/composure/c_extras.sh | 145 +++ .../erichs/composure/composure.plugin.zsh | 2 + .../github.com/erichs/composure/dot_gitignore | 1 + .../erichs/composure/dot_travis.yml | 9 + .../erichs/composure/executable_composure.sh | 561 +++++++++ .../github.com/erichs/composure/test/Makefile | 18 + .../test/executable_runshellcheck.sh | 31 + .../composure/test/executable_wvtestrun | 189 +++ .../gaelicWizard/bash-progcomp/LICENSE | 30 + .../bash-progcomp/defaults.completion.bash | 286 +++++ .../bash-progcomp/dot_editorconfig | 40 + .../executable_defaults.completion.bats | 184 +++ .../rcaloras/bash-preexec/LICENSE.md | 21 + .../rcaloras/bash-preexec/README.md | 107 ++ .../rcaloras/bash-preexec/bash-preexec.sh | 351 ++++++ .../rcaloras/bash-preexec/dot_travis.yml | 20 + .../rcaloras/bash-preexec/test/README.md | 22 + .../bash-preexec/test/bash-preexec.bats | 364 ++++++ .../bash-preexec/test/include-test.bats | 20 + .../rparree/jboss-bash-completion/LICENSE | 21 + .../rparree/jboss-bash-completion/README.md | 37 + .../rparree/jboss-bash-completion/jboss5 | 95 ++ .../rparree/jboss-bash-completion/jboss7 | 141 +++ .../apm-bash-completion/CODE_OF_CONDUCT.md | 76 ++ .../vigo/apm-bash-completion/LICENSE | 21 + .../vigo/apm-bash-completion/README.md | 70 ++ .../github.com/vigo/apm-bash-completion/apm | 63 + 490 files changed, 33047 insertions(+) create mode 100644 dot_bash_it/LICENSE create mode 100644 dot_bash_it/aliases/available/ag.aliases.bash create mode 100644 dot_bash_it/aliases/available/ansible.aliases.bash create mode 100644 dot_bash_it/aliases/available/apt.aliases.bash create mode 100644 dot_bash_it/aliases/available/atom.aliases.bash create mode 100644 dot_bash_it/aliases/available/bash-it.aliases.bash create mode 100644 dot_bash_it/aliases/available/bolt.aliases.bash create mode 100644 dot_bash_it/aliases/available/bundler.aliases.bash create mode 100644 dot_bash_it/aliases/available/clipboard.aliases.bash create mode 100644 dot_bash_it/aliases/available/composer.aliases.bash create mode 100644 dot_bash_it/aliases/available/curl.aliases.bash create mode 100644 dot_bash_it/aliases/available/dnf.aliases.bash create mode 100644 dot_bash_it/aliases/available/docker-compose.aliases.bash create mode 100644 dot_bash_it/aliases/available/docker.aliases.bash create mode 100644 dot_bash_it/aliases/available/emacs.aliases.bash create mode 100644 dot_bash_it/aliases/available/fuck.aliases.bash create mode 100644 dot_bash_it/aliases/available/general.aliases.bash create mode 100644 dot_bash_it/aliases/available/git.aliases.bash create mode 100644 dot_bash_it/aliases/available/gitsvn.aliases.bash create mode 100644 dot_bash_it/aliases/available/heroku.aliases.bash create mode 100644 dot_bash_it/aliases/available/hg.aliases.bash create mode 100644 dot_bash_it/aliases/available/homebrew-cask.aliases.bash create mode 100644 dot_bash_it/aliases/available/homebrew.aliases.bash create mode 100644 dot_bash_it/aliases/available/homesick.aliases.bash create mode 100644 dot_bash_it/aliases/available/jitsu.aliases.bash create mode 100644 dot_bash_it/aliases/available/kubectl.aliases.bash create mode 100644 dot_bash_it/aliases/available/laravel.aliases.bash create mode 100644 dot_bash_it/aliases/available/maven.aliases.bash create mode 100644 dot_bash_it/aliases/available/msys2.aliases.bash create mode 100644 dot_bash_it/aliases/available/node.aliases.bash create mode 100644 dot_bash_it/aliases/available/npm.aliases.bash create mode 100644 dot_bash_it/aliases/available/osx.aliases.bash create mode 100644 dot_bash_it/aliases/available/phoenix.aliases.bash create mode 100644 dot_bash_it/aliases/available/puppet.aliases.bash create mode 100644 dot_bash_it/aliases/available/pyrocms.aliases.bash create mode 100644 dot_bash_it/aliases/available/rails.aliases.bash create mode 100644 dot_bash_it/aliases/available/svn.aliases.bash create mode 100644 dot_bash_it/aliases/available/systemd.aliases.bash create mode 100644 dot_bash_it/aliases/available/terraform.aliases.bash create mode 100644 dot_bash_it/aliases/available/terragrunt.aliases.bash create mode 100644 dot_bash_it/aliases/available/textmate.aliases.bash create mode 100644 dot_bash_it/aliases/available/tmux.aliases.bash create mode 100644 dot_bash_it/aliases/available/todo.txt-cli.aliases.bash create mode 100644 dot_bash_it/aliases/available/uuidgen.aliases.bash create mode 100644 dot_bash_it/aliases/available/vagrant.aliases.bash create mode 100644 dot_bash_it/aliases/available/vault.aliases.bash create mode 100644 dot_bash_it/aliases/available/vim.aliases.bash create mode 100644 dot_bash_it/aliases/available/yarn.aliases.bash create mode 100644 dot_bash_it/clean_files.txt create mode 100644 dot_bash_it/completion/available/aliases.completion.bash create mode 100644 dot_bash_it/completion/available/apm.completion.bash create mode 100644 dot_bash_it/completion/available/awless.completion.bash create mode 100644 dot_bash_it/completion/available/awscli.completion.bash create mode 100644 dot_bash_it/completion/available/bash-it.completion.bash create mode 100644 dot_bash_it/completion/available/brew.completion.bash create mode 100644 dot_bash_it/completion/available/bundler.completion.bash create mode 100644 dot_bash_it/completion/available/capistrano.completion.bash create mode 100644 dot_bash_it/completion/available/cargo.completion.bash create mode 100644 dot_bash_it/completion/available/composer.completion.bash create mode 100644 dot_bash_it/completion/available/conda.completion.bash create mode 100644 dot_bash_it/completion/available/consul.completion.bash create mode 100644 dot_bash_it/completion/available/crystal.completion.bash create mode 100644 dot_bash_it/completion/available/dart.completion.bash create mode 100644 dot_bash_it/completion/available/defaults.completion.bash create mode 100644 dot_bash_it/completion/available/dirs.completion.bash create mode 100644 dot_bash_it/completion/available/django.completion.bash create mode 100644 dot_bash_it/completion/available/dmidecode.completion.bash create mode 100644 dot_bash_it/completion/available/docker-machine.completion.bash create mode 100644 dot_bash_it/completion/available/docker.completion.bash create mode 100644 dot_bash_it/completion/available/dotnet.completion.bash create mode 100644 dot_bash_it/completion/available/drush.completion.bash create mode 100644 dot_bash_it/completion/available/executable_docker-compose.completion.bash create mode 100644 dot_bash_it/completion/available/export.completion.bash create mode 100644 dot_bash_it/completion/available/fabric.completion.bash create mode 100644 dot_bash_it/completion/available/flutter.completion.bash create mode 100644 dot_bash_it/completion/available/gcloud.completion.bash create mode 100644 dot_bash_it/completion/available/gem.completion.bash create mode 100644 dot_bash_it/completion/available/git.completion.bash create mode 100644 dot_bash_it/completion/available/git_flow.completion.bash create mode 100644 dot_bash_it/completion/available/git_flow_avh.completion.bash create mode 100644 dot_bash_it/completion/available/github-cli.completion.bash create mode 100644 dot_bash_it/completion/available/go.completion.bash create mode 100644 dot_bash_it/completion/available/gradle.completion.bash create mode 100644 dot_bash_it/completion/available/grunt.completion.bash create mode 100644 dot_bash_it/completion/available/gulp.completion.bash create mode 100644 dot_bash_it/completion/available/helm.completion.bash create mode 100644 dot_bash_it/completion/available/homesick.completion.bash create mode 100644 dot_bash_it/completion/available/hub.completion.bash create mode 100644 dot_bash_it/completion/available/invoke.completion.bash create mode 100644 dot_bash_it/completion/available/jboss5.completion.bash create mode 100644 dot_bash_it/completion/available/jboss7.completion.bash create mode 100644 dot_bash_it/completion/available/jungle.completion.bash create mode 100644 dot_bash_it/completion/available/kind.completion.bash create mode 100644 dot_bash_it/completion/available/knife.completion.bash create mode 100644 dot_bash_it/completion/available/kontena.completion.bash create mode 100644 dot_bash_it/completion/available/kubectl.completion.bash create mode 100644 dot_bash_it/completion/available/laravel.completion.bash create mode 100644 dot_bash_it/completion/available/lerna.completion.bash create mode 100644 dot_bash_it/completion/available/makefile.completion.bash create mode 100644 dot_bash_it/completion/available/maven.completion.bash create mode 100644 dot_bash_it/completion/available/minikube.completion.bash create mode 100644 dot_bash_it/completion/available/minishift.completion.bash create mode 100644 dot_bash_it/completion/available/ng.completion.bash create mode 100644 dot_bash_it/completion/available/ngrok.completion.bash create mode 100644 dot_bash_it/completion/available/notify-send.completion.bash create mode 100644 dot_bash_it/completion/available/npm.completion.bash create mode 100644 dot_bash_it/completion/available/nvm.completion.bash create mode 100644 dot_bash_it/completion/available/openshift.completion.bash create mode 100644 dot_bash_it/completion/available/packer.completion.bash create mode 100644 dot_bash_it/completion/available/pew.completion.bash create mode 100644 dot_bash_it/completion/available/pip.completion.bash create mode 100644 dot_bash_it/completion/available/pip3.completion.bash create mode 100644 dot_bash_it/completion/available/pipenv.completion.bash create mode 100644 dot_bash_it/completion/available/pipx.completion.bash create mode 100644 dot_bash_it/completion/available/projects.completion.bash create mode 100644 dot_bash_it/completion/available/rake.completion.bash create mode 100644 dot_bash_it/completion/available/rustup.completion.bash create mode 100644 dot_bash_it/completion/available/rvm.completion.bash create mode 100644 dot_bash_it/completion/available/salt.completion.bash create mode 100644 dot_bash_it/completion/available/sdkman.completion.bash create mode 100644 dot_bash_it/completion/available/sqlmap.completion.bash create mode 100644 dot_bash_it/completion/available/ssh.completion.bash create mode 100644 dot_bash_it/completion/available/svn.completion.bash create mode 100644 dot_bash_it/completion/available/system.completion.bash create mode 100644 dot_bash_it/completion/available/terraform.completion.bash create mode 100644 dot_bash_it/completion/available/test_kitchen.completion.bash create mode 100644 dot_bash_it/completion/available/tmux.completion.bash create mode 100644 dot_bash_it/completion/available/todo.completion.bash create mode 100644 dot_bash_it/completion/available/travis.completion.bash create mode 100644 dot_bash_it/completion/available/vagrant.completion.bash create mode 100644 dot_bash_it/completion/available/vault.completion.bash create mode 100644 dot_bash_it/completion/available/virsh.completion.bash create mode 100644 dot_bash_it/completion/available/virtualbox.completion.bash create mode 100644 dot_bash_it/completion/available/vuejs.completion.bash create mode 100644 dot_bash_it/completion/available/wpscan.completion.bash create mode 100644 dot_bash_it/custom/example.bash create mode 100644 dot_bash_it/docs/Makefile create mode 100644 dot_bash_it/docs/README.md create mode 100644 dot_bash_it/docs/commands/doctor.rst create mode 100644 dot_bash_it/docs/commands/index.rst create mode 100644 dot_bash_it/docs/commands/profile.rst create mode 100644 dot_bash_it/docs/commands/reload.rst create mode 100644 dot_bash_it/docs/commands/search.rst create mode 100644 dot_bash_it/docs/commands/update.rst create mode 100644 dot_bash_it/docs/conf.py create mode 100644 dot_bash_it/docs/contributing.rst create mode 100644 dot_bash_it/docs/custom.rst create mode 100644 dot_bash_it/docs/development.rst create mode 100644 dot_bash_it/docs/help_screens.rst create mode 100644 dot_bash_it/docs/index.rst create mode 100644 dot_bash_it/docs/installation.rst create mode 100644 dot_bash_it/docs/make.bat create mode 100644 dot_bash_it/docs/misc.rst create mode 100644 dot_bash_it/docs/proxy_support.rst create mode 100644 dot_bash_it/docs/requirements.txt create mode 100644 dot_bash_it/docs/test.rst create mode 100644 dot_bash_it/docs/themes-list/atomic.rst create mode 100644 dot_bash_it/docs/themes-list/barbuk.rst create mode 100644 dot_bash_it/docs/themes-list/bira.rst create mode 100644 dot_bash_it/docs/themes-list/brainy.rst create mode 100644 dot_bash_it/docs/themes-list/codeword.rst create mode 100644 dot_bash_it/docs/themes-list/easy.rst create mode 100644 dot_bash_it/docs/themes-list/index.rst create mode 100644 dot_bash_it/docs/themes-list/nwinkler_random_colors.png create mode 100644 dot_bash_it/docs/themes-list/nwinkler_random_colors.rst create mode 100644 dot_bash_it/docs/themes-list/oh-my-posh.rst create mode 100644 dot_bash_it/docs/themes-list/powerline-base.rst create mode 100644 dot_bash_it/docs/themes-list/powerline-multiline.rst create mode 100644 dot_bash_it/docs/themes-list/powerline-naked.rst create mode 100644 dot_bash_it/docs/themes-list/powerline-plain.rst create mode 100644 dot_bash_it/docs/themes-list/powerline.rst create mode 100644 dot_bash_it/docs/themes-list/radek.rst create mode 100644 dot_bash_it/docs/themes-list/redline.png create mode 100644 dot_bash_it/docs/themes-list/redline.rst create mode 100644 dot_bash_it/docs/themes.rst create mode 100644 dot_bash_it/docs/troubleshooting.rst create mode 100644 dot_bash_it/docs/uninstalling.rst create mode 100644 dot_bash_it/docs/vcs_user.rst create mode 100644 dot_bash_it/dot_ackrc create mode 100644 dot_bash_it/dot_editorconfig create mode 100644 dot_bash_it/dot_git/HEAD create mode 100644 dot_bash_it/dot_git/branches/.keep create mode 100644 dot_bash_it/dot_git/config create mode 100644 dot_bash_it/dot_git/description create mode 100644 dot_bash_it/dot_git/hooks/executable_applypatch-msg.sample create mode 100644 dot_bash_it/dot_git/hooks/executable_commit-msg.sample create mode 100644 dot_bash_it/dot_git/hooks/executable_fsmonitor-watchman.sample create mode 100644 dot_bash_it/dot_git/hooks/executable_post-update.sample create mode 100644 dot_bash_it/dot_git/hooks/executable_pre-applypatch.sample create mode 100644 dot_bash_it/dot_git/hooks/executable_pre-commit.sample create mode 100644 dot_bash_it/dot_git/hooks/executable_pre-merge-commit.sample create mode 100644 dot_bash_it/dot_git/hooks/executable_pre-push.sample create mode 100644 dot_bash_it/dot_git/hooks/executable_pre-rebase.sample create mode 100644 dot_bash_it/dot_git/hooks/executable_pre-receive.sample create mode 100644 dot_bash_it/dot_git/hooks/executable_prepare-commit-msg.sample create mode 100644 dot_bash_it/dot_git/hooks/executable_push-to-checkout.sample create mode 100644 dot_bash_it/dot_git/hooks/executable_update.sample create mode 100644 dot_bash_it/dot_git/index create mode 100644 dot_bash_it/dot_git/info/exclude create mode 100644 dot_bash_it/dot_git/logs/HEAD create mode 100644 dot_bash_it/dot_git/logs/refs/heads/master create mode 100644 dot_bash_it/dot_git/logs/refs/remotes/origin/HEAD create mode 100644 dot_bash_it/dot_git/objects/info/.keep create mode 100644 dot_bash_it/dot_git/objects/pack/readonly_pack-b7fb1a9f819f443a8ea281815d8b46284939d414.idx create mode 100644 dot_bash_it/dot_git/objects/pack/readonly_pack-b7fb1a9f819f443a8ea281815d8b46284939d414.pack create mode 100644 dot_bash_it/dot_git/packed-refs create mode 100644 dot_bash_it/dot_git/refs/heads/master create mode 100644 dot_bash_it/dot_git/refs/remotes/origin/HEAD create mode 100644 dot_bash_it/dot_git/refs/tags/.keep create mode 100644 dot_bash_it/dot_git/shallow create mode 100644 dot_bash_it/dot_gitattributes create mode 100644 dot_bash_it/dot_github/ISSUE_TEMPLATE/bug_report.yml create mode 100644 dot_bash_it/dot_github/ISSUE_TEMPLATE/config.yml create mode 100644 dot_bash_it/dot_github/ISSUE_TEMPLATE/feature_request.yml create mode 100644 dot_bash_it/dot_github/PULL_REQUEST_TEMPLATE.md create mode 100644 dot_bash_it/dot_github/no-response.yml create mode 100644 dot_bash_it/dot_github/workflows/ci.yml create mode 100644 dot_bash_it/dot_gitignore create mode 100644 dot_bash_it/dot_gitmodules create mode 100644 dot_bash_it/dot_pre-commit-config.yaml create mode 100644 dot_bash_it/dot_readthedocs.yml create mode 100644 dot_bash_it/enabled/symlink_150---general.aliases.bash create mode 100644 dot_bash_it/enabled/symlink_250---base.plugin.bash create mode 100644 dot_bash_it/enabled/symlink_325---system.completion.bash create mode 100644 dot_bash_it/enabled/symlink_350---bash-it.completion.bash create mode 100644 dot_bash_it/enabled/symlink_800---aliases.completion.bash create mode 100644 dot_bash_it/executable_bash_it.sh create mode 100644 dot_bash_it/executable_install.sh create mode 100644 dot_bash_it/executable_lint_clean_files.sh create mode 100644 dot_bash_it/executable_uninstall.sh create mode 100644 dot_bash_it/hooks/executable_check-clean-files-txt.sh create mode 100644 dot_bash_it/hooks/executable_dot-bash.sh create mode 100644 dot_bash_it/hooks/executable_dot-sh.sh create mode 100644 dot_bash_it/lib/appearance.bash create mode 100644 dot_bash_it/lib/colors.bash create mode 100644 dot_bash_it/lib/command_duration.bash create mode 100644 dot_bash_it/lib/helpers.bash create mode 100644 dot_bash_it/lib/history.bash create mode 100644 dot_bash_it/lib/log.bash create mode 100644 dot_bash_it/lib/preexec.bash create mode 100644 dot_bash_it/lib/preview.bash create mode 100644 dot_bash_it/lib/search.bash create mode 100644 dot_bash_it/lib/utilities.bash create mode 100644 dot_bash_it/plugins/available/alias-completion.plugin.bash create mode 100644 dot_bash_it/plugins/available/autojump.plugin.bash create mode 100644 dot_bash_it/plugins/available/aws.plugin.bash create mode 100644 dot_bash_it/plugins/available/base.plugin.bash create mode 100644 dot_bash_it/plugins/available/basher.plugin.bash create mode 100644 dot_bash_it/plugins/available/battery.plugin.bash create mode 100644 dot_bash_it/plugins/available/blesh.plugin.bash create mode 100644 dot_bash_it/plugins/available/boot2docker.plugin.bash create mode 100644 dot_bash_it/plugins/available/browser.plugin.bash create mode 100644 dot_bash_it/plugins/available/chruby-auto.plugin.bash create mode 100644 dot_bash_it/plugins/available/chruby.plugin.bash create mode 100644 dot_bash_it/plugins/available/cht-sh.plugin.bash create mode 100644 dot_bash_it/plugins/available/cmd-returned-notify.plugin.bash create mode 100644 dot_bash_it/plugins/available/colors.plugin.bash create mode 100644 dot_bash_it/plugins/available/direnv.plugin.bash create mode 100644 dot_bash_it/plugins/available/dirs.plugin.bash create mode 100644 dot_bash_it/plugins/available/docker-compose.plugin.bash create mode 100644 dot_bash_it/plugins/available/docker-machine.plugin.bash create mode 100644 dot_bash_it/plugins/available/docker.plugin.bash create mode 100644 dot_bash_it/plugins/available/edit-mode-emacs.plugin.bash create mode 100644 dot_bash_it/plugins/available/edit-mode-vi.plugin.bash create mode 100644 dot_bash_it/plugins/available/explain.plugin.bash create mode 100644 dot_bash_it/plugins/available/extract.plugin.bash create mode 100644 dot_bash_it/plugins/available/fasd.plugin.bash create mode 100644 dot_bash_it/plugins/available/fzf.plugin.bash create mode 100644 dot_bash_it/plugins/available/gif.plugin.bash create mode 100644 dot_bash_it/plugins/available/git-subrepo.plugin.bash create mode 100644 dot_bash_it/plugins/available/git.plugin.bash create mode 100644 dot_bash_it/plugins/available/gitstatus.plugin.bash create mode 100644 dot_bash_it/plugins/available/go.plugin.bash create mode 100644 dot_bash_it/plugins/available/goenv.plugin.bash create mode 100644 dot_bash_it/plugins/available/gradle.plugin.bash create mode 100644 dot_bash_it/plugins/available/hg.plugin.bash create mode 100644 dot_bash_it/plugins/available/history-eternal.plugin.bash create mode 100644 dot_bash_it/plugins/available/history-search.plugin.bash create mode 100644 dot_bash_it/plugins/available/history-substring-search.plugin.bash create mode 100644 dot_bash_it/plugins/available/history.plugin.bash create mode 100644 dot_bash_it/plugins/available/hub.plugin.bash create mode 100644 dot_bash_it/plugins/available/java.plugin.bash create mode 100644 dot_bash_it/plugins/available/javascript.plugin.bash create mode 100644 dot_bash_it/plugins/available/jekyll.plugin.bash create mode 100644 dot_bash_it/plugins/available/jenv.plugin.bash create mode 100644 dot_bash_it/plugins/available/jgitflow.plugin.bash create mode 100644 dot_bash_it/plugins/available/jump.plugin.bash create mode 100644 dot_bash_it/plugins/available/latex.plugin.bash create mode 100644 dot_bash_it/plugins/available/less-pretty-cat.plugin.bash create mode 100644 dot_bash_it/plugins/available/man.plugin.bash create mode 100644 dot_bash_it/plugins/available/nginx.plugin.bash create mode 100644 dot_bash_it/plugins/available/node.plugin.bash create mode 100644 dot_bash_it/plugins/available/nodenv.plugin.bash create mode 100644 dot_bash_it/plugins/available/nvm.plugin.bash create mode 100644 dot_bash_it/plugins/available/osx-timemachine.plugin.bash create mode 100644 dot_bash_it/plugins/available/osx.plugin.bash create mode 100644 dot_bash_it/plugins/available/pack.plugin.bash create mode 100644 dot_bash_it/plugins/available/percol.plugin.bash create mode 100644 dot_bash_it/plugins/available/pipsi.plugin.bash create mode 100644 dot_bash_it/plugins/available/plenv.plugin.bash create mode 100644 dot_bash_it/plugins/available/postgres.plugin.bash create mode 100644 dot_bash_it/plugins/available/powerline.plugin.bash create mode 100644 dot_bash_it/plugins/available/projects.plugin.bash create mode 100644 dot_bash_it/plugins/available/proxy.plugin.bash create mode 100644 dot_bash_it/plugins/available/pyenv.plugin.bash create mode 100644 dot_bash_it/plugins/available/python.plugin.bash create mode 100644 dot_bash_it/plugins/available/rails.plugin.bash create mode 100644 dot_bash_it/plugins/available/rbenv.plugin.bash create mode 100644 dot_bash_it/plugins/available/ruby.plugin.bash create mode 100644 dot_bash_it/plugins/available/rvm.plugin.bash create mode 100644 dot_bash_it/plugins/available/sdkman.plugin.bash create mode 100644 dot_bash_it/plugins/available/ssh.plugin.bash create mode 100644 dot_bash_it/plugins/available/sshagent.plugin.bash create mode 100644 dot_bash_it/plugins/available/subversion.plugin.bash create mode 100644 dot_bash_it/plugins/available/sudo.plugin.bash create mode 100644 dot_bash_it/plugins/available/textmate.plugin.bash create mode 100644 dot_bash_it/plugins/available/thefuck.plugin.bash create mode 100644 dot_bash_it/plugins/available/tmux.plugin.bash create mode 100644 dot_bash_it/plugins/available/tmuxinator.plugin.bash create mode 100644 dot_bash_it/plugins/available/todo.plugin.bash create mode 100644 dot_bash_it/plugins/available/virtualenv.plugin.bash create mode 100644 dot_bash_it/plugins/available/xterm.plugin.bash create mode 100644 dot_bash_it/plugins/available/z_autoenv.plugin.bash create mode 100644 dot_bash_it/plugins/available/zoxide.plugin.bash create mode 100644 dot_bash_it/profiles/default.bash_it create mode 100644 dot_bash_it/scripts/reloader.bash create mode 100644 dot_bash_it/template/executable_bash_profile.template.bash create mode 100644 dot_bash_it/test/bash_it/bash_it.bats create mode 100644 dot_bash_it/test/completion/aliases.completion.bats create mode 100644 dot_bash_it/test/completion/executable_bash-it.completion.bats create mode 100644 dot_bash_it/test/executable_run create mode 100644 dot_bash_it/test/fixtures/bash_it/aliases/available/a.aliases.bash create mode 100644 dot_bash_it/test/fixtures/bash_it/aliases/available/b.aliases.bash create mode 100644 dot_bash_it/test/fixtures/bash_it/plugins/available/c.plugin.bash create mode 100644 dot_bash_it/test/fixtures/bash_it/profiles/test-bad-component.bash_it create mode 100644 dot_bash_it/test/fixtures/bash_it/profiles/test-bad-type.bash_it create mode 100644 dot_bash_it/test/fixtures/svn/broken/executable_svn create mode 100644 dot_bash_it/test/fixtures/svn/working/executable_svn create mode 100644 dot_bash_it/test/install/install.bats create mode 100644 dot_bash_it/test/install/uninstall.bats create mode 100644 dot_bash_it/test/lib/composure.bats create mode 100644 dot_bash_it/test/lib/helpers.bats create mode 100644 dot_bash_it/test/lib/log.bats create mode 100644 dot_bash_it/test/lib/preexec.bats create mode 100644 dot_bash_it/test/lib/search.bats create mode 100644 dot_bash_it/test/lib/utilities.bats create mode 100644 dot_bash_it/test/lint-requirements.txt create mode 100644 dot_bash_it/test/plugins/base.plugin.bats create mode 100644 dot_bash_it/test/plugins/battery.plugin.bats create mode 100644 dot_bash_it/test/plugins/cmd-returned-notify.plugin.bats create mode 100644 dot_bash_it/test/plugins/go.plugin.bats create mode 100644 dot_bash_it/test/plugins/ruby.plugin.bats create mode 100644 dot_bash_it/test/plugins/xterm.plugin.bats create mode 100644 dot_bash_it/test/test_helper.bash create mode 100644 dot_bash_it/test/themes/base.theme.bats create mode 100644 dot_bash_it/test/themes/base.theme.git.bats create mode 100644 dot_bash_it/test/themes/base.theme.svn.bats create mode 100644 dot_bash_it/test_lib/bats-assert/.keep create mode 100644 dot_bash_it/test_lib/bats-core/.keep create mode 100644 dot_bash_it/test_lib/bats-file/.keep create mode 100644 dot_bash_it/test_lib/bats-support/.keep create mode 100644 dot_bash_it/themes/90210/90210.theme.bash create mode 100644 dot_bash_it/themes/agnoster/agnoster.theme.bash create mode 100644 dot_bash_it/themes/atomic/atomic.theme.bash create mode 100644 dot_bash_it/themes/axin/axin.theme.bash create mode 100644 dot_bash_it/themes/bakke/bakke.theme.bash create mode 100644 dot_bash_it/themes/barbuk/barbuk.theme.bash create mode 100644 dot_bash_it/themes/barbuk/symlink_README.rst create mode 100644 dot_bash_it/themes/base.theme.bash create mode 100644 dot_bash_it/themes/binaryanomaly/binaryanomaly.theme.bash create mode 100644 dot_bash_it/themes/bira/bira.theme.bash create mode 100644 dot_bash_it/themes/bobby-python/bobby-python.theme.bash create mode 100644 dot_bash_it/themes/bobby/bobby.theme.bash create mode 100644 dot_bash_it/themes/brainy/brainy.theme.bash create mode 100644 dot_bash_it/themes/brunton/brunton.theme.bash create mode 100644 dot_bash_it/themes/candy/candy.theme.bash create mode 100644 dot_bash_it/themes/clean/clean.theme.bash create mode 100644 dot_bash_it/themes/codeword/codeword.theme.bash create mode 100644 dot_bash_it/themes/cooperkid/cooperkid.theme.bash create mode 100644 dot_bash_it/themes/cupcake/cupcake.theme.bash create mode 100644 dot_bash_it/themes/demula/demula.theme.bash create mode 100644 dot_bash_it/themes/dos/dos.theme.bash create mode 100644 dot_bash_it/themes/doubletime/doubletime.theme.bash create mode 100644 dot_bash_it/themes/doubletime_multiline/doubletime_multiline.theme.bash create mode 100644 dot_bash_it/themes/doubletime_multiline_pyonly/doubletime_multiline_pyonly.theme.bash create mode 100644 dot_bash_it/themes/dulcie/executable_dulcie.theme.bash create mode 100644 dot_bash_it/themes/duru/duru.theme.bash create mode 100644 dot_bash_it/themes/easy/easy.theme.bash create mode 100644 dot_bash_it/themes/elixr/elixr.theme.bash create mode 100644 dot_bash_it/themes/emperor/emperor.theme.bash create mode 100644 dot_bash_it/themes/envy/envy.theme.bash create mode 100644 dot_bash_it/themes/essential/essential.theme.bash create mode 100644 dot_bash_it/themes/font/font.theme.bash create mode 100644 dot_bash_it/themes/gallifrey/gallifrey.theme.bash create mode 100644 dot_bash_it/themes/githelpers.theme.bash create mode 100644 dot_bash_it/themes/gitline/gitline.theme.bash create mode 100644 dot_bash_it/themes/gitline/powerline.base.bash create mode 100644 dot_bash_it/themes/hawaii50/hawaii50.theme.bash create mode 100644 dot_bash_it/themes/iterate/iterate.theme.bash create mode 100644 dot_bash_it/themes/kitsune/kitsune.theme.bash create mode 100644 dot_bash_it/themes/liquidprompt/dot_gitignore create mode 100644 dot_bash_it/themes/liquidprompt/liquidprompt.theme.bash create mode 100644 dot_bash_it/themes/luan/luan.theme.bash create mode 100644 dot_bash_it/themes/mairan/mairan.theme.bash create mode 100644 dot_bash_it/themes/mbriggs/mbriggs.theme.bash create mode 100644 dot_bash_it/themes/metal/metal.theme.bash create mode 100644 dot_bash_it/themes/minimal/minimal.theme.bash create mode 100644 dot_bash_it/themes/modern-t/modern-t.theme.bash create mode 100644 dot_bash_it/themes/modern-time/modern-time.theme.bash create mode 100644 dot_bash_it/themes/modern/modern.theme.bash create mode 100644 dot_bash_it/themes/morris/morris.theme.bash create mode 100644 dot_bash_it/themes/n0qorg/n0qorg.theme.bash create mode 100644 dot_bash_it/themes/newin/newin.theme.bash create mode 100644 dot_bash_it/themes/norbu/norbu.theme.bash create mode 100644 dot_bash_it/themes/nwinkler/nwinkler.theme.bash create mode 100644 dot_bash_it/themes/nwinkler_random_colors/nwinkler_random_colors.theme.bash create mode 100644 dot_bash_it/themes/oh-my-posh/oh-my-posh.theme.bash create mode 100644 dot_bash_it/themes/p4helpers.theme.bash create mode 100644 dot_bash_it/themes/parrot/parrot.theme.bash create mode 100644 dot_bash_it/themes/pete/pete.theme.bash create mode 100644 dot_bash_it/themes/powerline-multiline/powerline-multiline.base.bash create mode 100644 dot_bash_it/themes/powerline-multiline/powerline-multiline.theme.bash create mode 100644 dot_bash_it/themes/powerline-naked/powerline-naked.base.bash create mode 100644 dot_bash_it/themes/powerline-naked/powerline-naked.theme.bash create mode 100644 dot_bash_it/themes/powerline-plain/powerline-plain.base.bash create mode 100644 dot_bash_it/themes/powerline-plain/powerline-plain.theme.bash create mode 100644 dot_bash_it/themes/powerline/powerline.base.bash create mode 100644 dot_bash_it/themes/powerline/powerline.theme.bash create mode 100644 dot_bash_it/themes/powerturk/powerturk.theme.bash create mode 100644 dot_bash_it/themes/primer/primer.theme.bash create mode 100644 dot_bash_it/themes/pro/pro.theme.bash create mode 100644 dot_bash_it/themes/pure/pure.theme.bash create mode 100644 dot_bash_it/themes/purity/purity.theme.bash create mode 100644 dot_bash_it/themes/radek/radek.theme.bash create mode 100644 dot_bash_it/themes/rainbowbrite/rainbowbrite.theme.bash create mode 100644 dot_bash_it/themes/ramses/ramses.theme.bash create mode 100644 dot_bash_it/themes/rana/rana.theme.bash create mode 100644 dot_bash_it/themes/redline/redline.theme.bash create mode 100644 dot_bash_it/themes/rjorgenson/rjorgenson.theme.bash create mode 100644 dot_bash_it/themes/robbyrussell/robbyrussell.theme.bash create mode 100644 dot_bash_it/themes/roderik/roderik.theme.bash create mode 100644 dot_bash_it/themes/sexy/sexy.theme.bash create mode 100644 dot_bash_it/themes/simple/simple.theme.bash create mode 100644 dot_bash_it/themes/sirup/sirup.theme.bash create mode 100644 dot_bash_it/themes/slick/slick.theme.bash create mode 100644 dot_bash_it/themes/standard/standard.theme.bash create mode 100644 dot_bash_it/themes/tonka/tonka.theme.bash create mode 100644 dot_bash_it/themes/tonotdo/tonotdo.theme.bash create mode 100644 dot_bash_it/themes/tylenol/tylenol.theme.bash create mode 100644 dot_bash_it/themes/wanelo/wanelo.theme.bash create mode 100644 dot_bash_it/themes/zitron/zitron.theme.bash create mode 100644 dot_bash_it/themes/zork/zork.theme.bash create mode 100644 dot_bash_it/vendor/dot_gitattributes create mode 100644 dot_bash_it/vendor/github.com/django/django/AUTHORS create mode 100644 dot_bash_it/vendor/github.com/django/django/LICENSE create mode 100644 dot_bash_it/vendor/github.com/django/django/LICENSE.python create mode 100644 dot_bash_it/vendor/github.com/django/django/extras/Makefile create mode 100644 dot_bash_it/vendor/github.com/django/django/extras/README.TXT create mode 100644 dot_bash_it/vendor/github.com/django/django/extras/executable_django_bash_completion create mode 100644 dot_bash_it/vendor/github.com/erichs/composure/History.md create mode 100644 dot_bash_it/vendor/github.com/erichs/composure/LICENSE create mode 100644 dot_bash_it/vendor/github.com/erichs/composure/Makefile create mode 100644 dot_bash_it/vendor/github.com/erichs/composure/README.md create mode 100644 dot_bash_it/vendor/github.com/erichs/composure/c_extras.sh create mode 100644 dot_bash_it/vendor/github.com/erichs/composure/composure.plugin.zsh create mode 100644 dot_bash_it/vendor/github.com/erichs/composure/dot_gitignore create mode 100644 dot_bash_it/vendor/github.com/erichs/composure/dot_travis.yml create mode 100644 dot_bash_it/vendor/github.com/erichs/composure/executable_composure.sh create mode 100644 dot_bash_it/vendor/github.com/erichs/composure/test/Makefile create mode 100644 dot_bash_it/vendor/github.com/erichs/composure/test/executable_runshellcheck.sh create mode 100644 dot_bash_it/vendor/github.com/erichs/composure/test/executable_wvtestrun create mode 100644 dot_bash_it/vendor/github.com/gaelicWizard/bash-progcomp/LICENSE create mode 100644 dot_bash_it/vendor/github.com/gaelicWizard/bash-progcomp/defaults.completion.bash create mode 100644 dot_bash_it/vendor/github.com/gaelicWizard/bash-progcomp/dot_editorconfig create mode 100644 dot_bash_it/vendor/github.com/gaelicWizard/bash-progcomp/executable_defaults.completion.bats create mode 100644 dot_bash_it/vendor/github.com/rcaloras/bash-preexec/LICENSE.md create mode 100644 dot_bash_it/vendor/github.com/rcaloras/bash-preexec/README.md create mode 100644 dot_bash_it/vendor/github.com/rcaloras/bash-preexec/bash-preexec.sh create mode 100644 dot_bash_it/vendor/github.com/rcaloras/bash-preexec/dot_travis.yml create mode 100644 dot_bash_it/vendor/github.com/rcaloras/bash-preexec/test/README.md create mode 100644 dot_bash_it/vendor/github.com/rcaloras/bash-preexec/test/bash-preexec.bats create mode 100644 dot_bash_it/vendor/github.com/rcaloras/bash-preexec/test/include-test.bats create mode 100644 dot_bash_it/vendor/github.com/rparree/jboss-bash-completion/LICENSE create mode 100644 dot_bash_it/vendor/github.com/rparree/jboss-bash-completion/README.md create mode 100644 dot_bash_it/vendor/github.com/rparree/jboss-bash-completion/jboss5 create mode 100644 dot_bash_it/vendor/github.com/rparree/jboss-bash-completion/jboss7 create mode 100644 dot_bash_it/vendor/github.com/vigo/apm-bash-completion/CODE_OF_CONDUCT.md create mode 100644 dot_bash_it/vendor/github.com/vigo/apm-bash-completion/LICENSE create mode 100644 dot_bash_it/vendor/github.com/vigo/apm-bash-completion/README.md create mode 100644 dot_bash_it/vendor/github.com/vigo/apm-bash-completion/apm diff --git a/dot_bash_it/LICENSE b/dot_bash_it/LICENSE new file mode 100644 index 0000000..25b6d7f --- /dev/null +++ b/dot_bash_it/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2020-2021 Bash-it + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/dot_bash_it/aliases/available/ag.aliases.bash b/dot_bash_it/aliases/available/ag.aliases.bash new file mode 100644 index 0000000..7f9af7d --- /dev/null +++ b/dot_bash_it/aliases/available/ag.aliases.bash @@ -0,0 +1,12 @@ +# shellcheck shell=bash +about-alias 'the silver searcher (ag) aliases' + +## Summary for args to less: +# less(1) +# -M (-M or --LONG-PROMPT) Prompt very verbosely +# -I (-I or --IGNORE-CASE) Searches with '/' ignore case +# -R (-R or --RAW-CONTROL-CHARS) For handling ANSI colors +# -F (-F or --quit-if-one-screen) Auto exit if <1 screen +# -X (-X or --no-init) Disable termcap init & deinit + +alias ag='ag --smart-case --pager="less -MIRFX"' diff --git a/dot_bash_it/aliases/available/ansible.aliases.bash b/dot_bash_it/aliases/available/ansible.aliases.bash new file mode 100644 index 0000000..04c5d28 --- /dev/null +++ b/dot_bash_it/aliases/available/ansible.aliases.bash @@ -0,0 +1,5 @@ +# shellcheck shell=bash +about-alias 'ansible abbreviations' + +alias ans=ansible +alias ap=ansible-playbook diff --git a/dot_bash_it/aliases/available/apt.aliases.bash b/dot_bash_it/aliases/available/apt.aliases.bash new file mode 100644 index 0000000..1d43ffa --- /dev/null +++ b/dot_bash_it/aliases/available/apt.aliases.bash @@ -0,0 +1,27 @@ +# shellcheck shell=bash +# +# -binaryanomaly + +cite 'about-alias' +about-alias 'Apt and dpkg aliases for Ubuntu and Debian distros.' + +# set apt aliases +function _set_pkg_aliases() { + if _command_exists apt; then + alias apts='apt-cache search' + alias aptshow='apt-cache show' + alias aptinst='sudo apt-get install -V' + alias aptupd='sudo apt-get update' + alias aptupg='sudo apt-get dist-upgrade -V && sudo apt-get autoremove' + alias aptupgd='sudo apt-get update && sudo apt-get dist-upgrade -V && sudo apt-get autoremove' + alias aptrm='sudo apt-get remove' + alias aptpurge='sudo apt-get remove --purge' + + alias chkup='/usr/lib/update-notifier/apt-check -p --human-readable' + alias chkboot='cat /var/run/reboot-required' + + alias pkgfiles='dpkg --listfiles' + fi +} + +_set_pkg_aliases diff --git a/dot_bash_it/aliases/available/atom.aliases.bash b/dot_bash_it/aliases/available/atom.aliases.bash new file mode 100644 index 0000000..6868e2c --- /dev/null +++ b/dot_bash_it/aliases/available/atom.aliases.bash @@ -0,0 +1,7 @@ +# shellcheck shell=bash +about-alias 'Atom.io editor abbreviations' + +alias a='atom' +alias ah='atom .' +alias apmup='apm update --no-confirm' +alias apmi='apm install' diff --git a/dot_bash_it/aliases/available/bash-it.aliases.bash b/dot_bash_it/aliases/available/bash-it.aliases.bash new file mode 100644 index 0000000..1f16638 --- /dev/null +++ b/dot_bash_it/aliases/available/bash-it.aliases.bash @@ -0,0 +1,23 @@ +# shellcheck shell=bash +about-alias 'Aliases for the bash-it command (these aliases are automatically included with the "general" aliases)' + +# Common misspellings of bash-it +alias shit='bash-it' +alias batshit='bash-it' +alias bashit='bash-it' +alias batbsh='bash-it' +alias babsh='bash-it' +alias bash_it='bash-it' +alias bash_ti='bash-it' + +# Additional bash-it aliases for help/show +alias bshsa='bash-it show aliases' +alias bshsc='bash-it show completions' +alias bshsp='bash-it show plugins' +alias bshha='bash-it help aliases' +alias bshhc='bash-it help completions' +alias bshhp='bash-it help plugins' +alias bshsch="bash-it search" +alias bshenp="bash-it enable plugin" +alias bshena="bash-it enable alias" +alias bshenc="bash-it enable completion" diff --git a/dot_bash_it/aliases/available/bolt.aliases.bash b/dot_bash_it/aliases/available/bolt.aliases.bash new file mode 100644 index 0000000..556dd7f --- /dev/null +++ b/dot_bash_it/aliases/available/bolt.aliases.bash @@ -0,0 +1,8 @@ +# shellcheck shell=bash +about-alias 'puppet bolt aliases' + +# Aliases +alias bolt='bolt command run --tty --no-host-key-check' +alias boltas='bolt -p -u' +alias sudobolt='bolt --run-as root --sudo-password' +alias sudoboltas='sudobolt -p -u' diff --git a/dot_bash_it/aliases/available/bundler.aliases.bash b/dot_bash_it/aliases/available/bundler.aliases.bash new file mode 100644 index 0000000..1eb0086 --- /dev/null +++ b/dot_bash_it/aliases/available/bundler.aliases.bash @@ -0,0 +1,9 @@ +# shellcheck shell=bash +about-alias 'ruby bundler' + +# Bundler Commands +alias be='bundle exec' +alias bi='bundle install' +alias bl='bundle list' +alias bu='bundle update' +alias bp='bundle package' diff --git a/dot_bash_it/aliases/available/clipboard.aliases.bash b/dot_bash_it/aliases/available/clipboard.aliases.bash new file mode 100644 index 0000000..2a5c3e8 --- /dev/null +++ b/dot_bash_it/aliases/available/clipboard.aliases.bash @@ -0,0 +1,16 @@ +# shellcheck shell=bash +about-alias 'xclip shortcuts' + +alias pbcopy="xclip -selection clipboard" +alias pbpaste="xclip -selection clipboard -o" + +alias xcpy="xclip -selection clipboard" +alias xpst="xclip -selection clipboard -o" +# to use it just install xclip on your distribution and it would work like: +# $ echo "hello" | xcpy +# $ xpst +# hello + +# very useful for things like: +# cat ~/.ssh/id_rsa.pub | xcpy +# have fun! diff --git a/dot_bash_it/aliases/available/composer.aliases.bash b/dot_bash_it/aliases/available/composer.aliases.bash new file mode 100644 index 0000000..85401ab --- /dev/null +++ b/dot_bash_it/aliases/available/composer.aliases.bash @@ -0,0 +1,39 @@ +# shellcheck shell=bash +about-alias 'common composer abbreviations' + +# Aliases +alias coab='composer about' +alias coar='composer archive' +alias cob='composer browser' +alias cocpr='composer check-platform-reqs' +alias cocc='composer clear-cache' +alias cocfg='composer config' +alias cocp='composer create-project' +alias codp='composer depends' +alias codiag='composer diagnose' +alias codmp='composer dump-autoload' +alias coex='composer exec' +alias coglob='composer global' +alias coh='composer help' +alias cohome='composer home' +alias coi='composer install' +alias coinf='composer info' +alias coini='composer init' +alias coli='composer license' +alias colis='composer list' +alias coout='composer outdated' +alias cop='composer prohibits' +alias corem='composer remove' +alias coreq='composer require' +alias coreqd='composer require --dev' +alias cors='composer run-script' +alias cos='composer search' +alias cosu='composer self-update' +alias coshow='composer show' +alias costat='composer status' +alias cosugg='composer suggest' +alias coup='composer update' +alias coupg='composer upgrade' +alias coval='composer validate' +alias cowhy='composer why' +alias cowhyn='composer why-not' diff --git a/dot_bash_it/aliases/available/curl.aliases.bash b/dot_bash_it/aliases/available/curl.aliases.bash new file mode 100644 index 0000000..a270e41 --- /dev/null +++ b/dot_bash_it/aliases/available/curl.aliases.bash @@ -0,0 +1,22 @@ +# shellcheck shell=bash +about-alias 'Curl aliases for convenience.' + +# set apt aliases +function _set_pkg_aliases() { + if _command_exists curl; then + # follow redirects + alias cl='curl -L' + # follow redirects, download as original name + alias clo='curl -L -O' + # follow redirects, download as original name, continue + alias cloc='curl -L -C - -O' + # follow redirects, download as original name, continue, retry 5 times + alias clocr='curl -L -C - -O --retry 5' + # follow redirects, fetch banner + alias clb='curl -L -I' + # see only response headers from a get request + alias clhead='curl -D - -so /dev/null' + fi +} + +_set_pkg_aliases diff --git a/dot_bash_it/aliases/available/dnf.aliases.bash b/dot_bash_it/aliases/available/dnf.aliases.bash new file mode 100644 index 0000000..25007c2 --- /dev/null +++ b/dot_bash_it/aliases/available/dnf.aliases.bash @@ -0,0 +1,17 @@ +# shellcheck shell=bash +about-alias 'dnf aliases for fedora 22+ distros' + +alias dnfl="dnf list" # List packages +alias dnfli="dnf list installed" # List installed packages +alias dnfgl="dnf grouplist" # List package groups +alias dnfmc="dnf makecache" # Generate metadata cache +alias dnfp="dnf info" # Show package information +alias dnfs="dnf search" # Search package + +alias dnfu="sudo dnf upgrade" # Upgrade package +alias dnfi="sudo dnf install" # Install package +alias dnfri='sudo dnf reinstall' # Reinstall package +alias dnfgi="sudo dnf groupinstall" # Install package group +alias dnfr="sudo dnf remove" # Remove package +alias dnfgr="sudo dnf groupremove" # Remove package group +alias dnfc="sudo dnf clean all" # Clean cache diff --git a/dot_bash_it/aliases/available/docker-compose.aliases.bash b/dot_bash_it/aliases/available/docker-compose.aliases.bash new file mode 100644 index 0000000..a2f637c --- /dev/null +++ b/dot_bash_it/aliases/available/docker-compose.aliases.bash @@ -0,0 +1,10 @@ +# shellcheck shell=bash +about-alias 'docker-compose abbreviations' + +alias dco="docker-compose" + +# Defined in the `docker-compose` plugin, please check there for details. +alias dcofresh="docker-compose-fresh" +alias dcol="docker-compose logs -f --tail 100" +alias dcou="docker-compose up" +alias dcouns="dcou --no-start" diff --git a/dot_bash_it/aliases/available/docker.aliases.bash b/dot_bash_it/aliases/available/docker.aliases.bash new file mode 100644 index 0000000..1c49207 --- /dev/null +++ b/dot_bash_it/aliases/available/docker.aliases.bash @@ -0,0 +1,43 @@ +# shellcheck shell=bash +about-alias 'docker abbreviations' + +alias dk='docker' +alias dklc='docker ps -l' # List last Docker container +alias dklcid='docker ps -l -q' # List last Docker container ID +alias dklcip='docker inspect -f "{{.NetworkSettings.IPAddress}}" $(docker ps -l -q)' # Get IP of last Docker container +alias dkps='docker ps' # List running Docker containers +alias dkpsa='docker ps -a' # List all Docker containers +alias dki='docker images' # List Docker images +alias dkrmac='docker rm $(docker ps -a -q)' # Delete all Docker containers + +case $OSTYPE in + darwin* | *bsd* | *BSD*) + alias dkrmui='docker images -q -f dangling=true | xargs docker rmi' # Delete all untagged Docker images + ;; + *) + alias dkrmui='docker images -q -f dangling=true | xargs -r docker rmi' # Delete all untagged Docker images + ;; +esac + +if _bash-it-component-item-is-enabled plugin docker; then + # Function aliases from docker plugin: + alias dkrmlc='docker-remove-most-recent-container' # Delete most recent (i.e., last) Docker container + alias dkrmall='docker-remove-stale-assets' # Delete all untagged images and exited containers + alias dkrmli='docker-remove-most-recent-image' # Delete most recent (i.e., last) Docker image + alias dkrmi='docker-remove-images' # Delete images for supplied IDs or all if no IDs are passed as arguments + alias dkideps='docker-image-dependencies' # Output a graph of image dependencies using Graphiz + alias dkre='docker-runtime-environment' # List environmental variables of the supplied image ID +fi +alias dkelc='docker exec -it $(dklcid) bash --login' # Enter last container (works with Docker 1.3 and above) +alias dkrmflast='docker rm -f $(dklcid)' +alias dkbash='dkelc' +alias dkex='docker exec -it ' # Useful to run any commands into container without leaving host +alias dkri='docker run --rm -i ' +alias dkric='docker run --rm -i -v $PWD:/cwd -w /cwd ' +alias dkrit='docker run --rm -it ' +alias dkritc='docker run --rm -it -v $PWD:/cwd -w /cwd ' + +# Added more recent cleanup options from newer docker versions +alias dkip='docker image prune -a -f' +alias dkvp='docker volume prune -f' +alias dksp='docker system prune -a -f' diff --git a/dot_bash_it/aliases/available/emacs.aliases.bash b/dot_bash_it/aliases/available/emacs.aliases.bash new file mode 100644 index 0000000..a4e4111 --- /dev/null +++ b/dot_bash_it/aliases/available/emacs.aliases.bash @@ -0,0 +1,16 @@ +# shellcheck shell=bash +about-alias 'emacs editor' + +case $OSTYPE in + linux*) + alias em='emacs' + alias en='emacs -nw' + alias e='emacsclient -n' + alias et='emacsclient -t' + alias ed='emacs --daemon' + alias E='SUDO_EDITOR=emacsclient sudo -e' + ;; + darwin*) + alias em='open -a emacs' + ;; +esac diff --git a/dot_bash_it/aliases/available/fuck.aliases.bash b/dot_bash_it/aliases/available/fuck.aliases.bash new file mode 100644 index 0000000..4cfa52d --- /dev/null +++ b/dot_bash_it/aliases/available/fuck.aliases.bash @@ -0,0 +1,10 @@ +# shellcheck shell=bash +about-alias 'fuck/please to retry last command with sudo' + +# Play nicely with 'thefuck' plugin +if ! _command_exists fuck; then + alias fuck='sudo $(fc -ln -1)' +fi +alias please=fuck +alias plz=please +alias fucking=sudo diff --git a/dot_bash_it/aliases/available/general.aliases.bash b/dot_bash_it/aliases/available/general.aliases.bash new file mode 100644 index 0000000..b493448 --- /dev/null +++ b/dot_bash_it/aliases/available/general.aliases.bash @@ -0,0 +1,96 @@ +# shellcheck shell=bash +about-alias 'general aliases' + +if command ls --color -d . &> /dev/null; then + alias ls='ls --color=auto' + # BSD `ls` doesn't need an argument (`-G`) when `$CLICOLOR` is set. +fi + +# List directory contents +alias sl=ls +alias la='ls -AF' # Compact view, show hidden +alias ll='ls -al' +alias l='ls -a' +alias l1='ls -1' +alias lf='ls -F' + +alias _='sudo' + +# Shortcuts to edit startup files +alias vbrc='${VISUAL:-vim} ~/.bashrc' +alias vbpf='${VISUAL:-vim} ~/.bash_profile' + +# colored grep +# Need to check an existing file for a pattern that will be found to ensure +# that the check works when on an OS that supports the color option +if command grep --color=auto "a" "${BASH_IT?}"/*.md &> /dev/null; then + alias grep='grep --color=auto' +fi + +if _command_exists gshuf; then + alias shuf=gshuf +fi + +alias c='clear' +alias cls='clear' + +alias edit='${EDITOR:-${ALTERNATE_EDITOR:-nano}}' +alias pager='${PAGER:=less}' + +alias q='exit' + +alias irc='${IRC_CLIENT:=irc}' + +# Language aliases +alias rb='ruby' +alias py='python' +alias ipy='ipython' + +# Pianobar can be found here: http://github.com/PromyLOPh/pianobar/ + +alias piano='pianobar' + +alias ..='cd ..' # Go up one directory +alias cd..='cd ..' # Common misspelling for going up one directory +alias ...='cd ../..' # Go up two directories +alias ....='cd ../../..' # Go up three directories +alias -- -='cd -' # Go back + +# Shell History +alias h='history' + +# Tree +if ! _command_exists tree; then + alias tree="find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'" +fi + +# Directory +alias md='mkdir -p' +alias rd='rmdir' + +# Shorten extract +alias xt='extract' + +# sudo editors +alias svim='sudo ${VISUAL:-vim}' +alias snano='sudo nano' + +# Display whatever file is regular file or folder +function catt() { + for i in "$@"; do + if [[ -d "$i" ]]; then + ls "$i" + else + cat "$i" + fi + done +} + +# The Bash-it aliases were moved to the `bash-it.aliases.bash` file. The intent of this +# is to keep the script readable and less bloated. If you don't need to use +# the `general` aliases, but you want the Bash-it aliases, you can disable the `general` +# aliases and enable just the ones for Bash-it explicitly: +# bash-it disable alias general +# bash-it enable alias bash-it +# shellcheck source-path=SCRIPTDIR +source "$BASH_IT/aliases/available/bash-it.aliases.bash" diff --git a/dot_bash_it/aliases/available/git.aliases.bash b/dot_bash_it/aliases/available/git.aliases.bash new file mode 100644 index 0000000..507037e --- /dev/null +++ b/dot_bash_it/aliases/available/git.aliases.bash @@ -0,0 +1,207 @@ +# shellcheck shell=bash +about-alias 'common git abbreviations' + +alias g='git' +alias get='git' + +# add +alias ga='git add' +alias gall='git add -A' +alias gap='git add -p' + +# branch +alias gb='git branch' +alias gbD='git branch -D' +alias gba='git branch -a' +alias gbd='git branch -d' +alias gbm='git branch -m' +alias gbt='git branch --track' +alias gdel='git branch -D' + +# for-each-ref +alias gbc='git for-each-ref --format="%(authorname) %09 %(if)%(HEAD)%(then)*%(else)%(refname:short)%(end) %09 %(creatordate)" refs/remotes/ --sort=authorname DESC' # FROM https://stackoverflow.com/a/58623139/10362396 + +# commit +alias gc='git commit -v' +alias gca='git commit -v -a' +alias gcaa='git commit -a --amend -C HEAD' # Add uncommitted and unstaged changes to the last commit +alias gcam='git commit -v -am' +alias gcamd='git commit --amend' +alias gcm='git commit -v -m' +alias gci='git commit --interactive' +alias gcsam='git commit -S -am' + +# checkout +alias gcb='git checkout -b' +alias gco='git checkout' +alias gcob='git checkout -b' +alias gcobu='git checkout -b ${USER}/' +alias gcom='git checkout $(get_default_branch)' +alias gcpd='git checkout $(get_default_branch); git pull; git branch -D' +alias gct='git checkout --track' + +# clone +alias gcl='git clone' + +# clean +alias gclean='git clean -fd' + +# cherry-pick +alias gcp='git cherry-pick' +alias gcpx='git cherry-pick -x' + +# diff +alias gd='git diff' +alias gds='git diff --staged' +alias gdt='git difftool' + +# archive +alias gexport='git archive --format zip --output' + +# fetch +alias gf='git fetch --all --prune' +alias gft='git fetch --all --prune --tags' +alias gftv='git fetch --all --prune --tags --verbose' +alias gfv='git fetch --all --prune --verbose' +alias gmu='git fetch origin -v; git fetch upstream -v; git merge upstream/$(get_default_branch)' +alias gup='git fetch && git rebase' + +# log +alias gg='git log --graph --pretty=format:'\''%C(bold)%h%Creset%C(magenta)%d%Creset %s %C(yellow)<%an> %C(cyan)(%cr)%Creset'\'' --abbrev-commit --date=relative' +alias ggf='git log --graph --date=short --pretty=format:'\''%C(auto)%h %Cgreen%an%Creset %Cblue%cd%Creset %C(auto)%d %s'\''' +alias ggs='gg --stat' +alias ggup='git log --branches --not --remotes --no-walk --decorate --oneline' # FROM https://stackoverflow.com/questions/39220870/in-git-list-names-of-branches-with-unpushed-commits +alias gll='git log --graph --pretty=oneline --abbrev-commit' +alias gnew='git log HEAD@{1}..HEAD@{0}' # Show commits since last pull, see http://blogs.atlassian.com/2014/10/advanced-git-aliases/ +alias gwc='git whatchanged' + +# ls-files +alias gu='git ls-files . --exclude-standard --others' # Show untracked files +alias glsut='gu' +alias glsum='git diff --name-only --diff-filter=U' # Show unmerged (conflicted) files + +# gui +alias ggui='git gui' + +# home +alias ghm='cd "$(git rev-parse --show-toplevel)"' # Git home +# appendage to ghm +if ! _command_exists gh; then + alias gh='ghm' +fi + +# merge +alias gm='git merge' + +# mv +alias gmv='git mv' + +# patch +alias gpatch='git format-patch -1' + +# push +alias gp='git push' +alias gpd='git push --delete' +alias gpf='git push --force' +alias gpo='git push origin HEAD' +alias gpom='git push origin $(get_default_branch)' +alias gpu='git push --set-upstream' +alias gpunch='git push --force-with-lease' +alias gpuo='git push --set-upstream origin' +alias gpuoc='git push --set-upstream origin $(git symbolic-ref --short HEAD)' + +# pull +alias gl='git pull' +alias glum='git pull upstream $(get_default_branch)' +alias gpl='git pull' +alias gpp='git pull && git push' +alias gpr='git pull --rebase' + +# remote +alias gr='git remote' +alias gra='git remote add' +alias grv='git remote -v' + +# rm +alias grm='git rm' + +# rebase +alias grb='git rebase' +alias grbc='git rebase --continue' +alias grm='git rebase $(get_default_branch)' +alias grmi='git rebase $(get_default_branch) -i' +alias grma='GIT_SEQUENCE_EDITOR=: git rebase $(get_default_branch) -i --autosquash' +alias gprom='git fetch origin $(get_default_branch) && git rebase origin/$(get_default_branch) && git update-ref refs/heads/$(get_default_branch) origin/$(get_default_branch)' # Rebase with latest remote + +# reset +alias gus='git reset HEAD' +alias gpristine='git reset --hard && git clean -dfx' + +# status +alias gs='git status' +alias gss='git status -s' + +# shortlog +alias gcount='git shortlog -sn' +alias gsl='git shortlog -sn' + +# show +alias gsh='git show' + +# svn +alias gsd='git svn dcommit' +alias gsr='git svn rebase' # Git SVN + +# stash +alias gst='git stash' +alias gstb='git stash branch' +alias gstd='git stash drop' +alias gstl='git stash list' +alias gstp='git stash pop' # kept due to long-standing usage +alias gstpo='git stash pop' # recommended for it's symmetry with gstpu (push) + +## 'stash push' introduced in git v2.13.2 +alias gstpu='git stash push' +alias gstpum='git stash push -m' + +## 'stash save' deprecated since git v2.16.0, alias is now push +alias gsts='git stash push' +alias gstsm='git stash push -m' + +# submodules +alias gsu='git submodule update --init --recursive' + +# switch +# these aliases requires git v2.23+ +alias gsw='git switch' +alias gswc='git switch --create' +alias gswm='git switch $(get_default_branch)' +alias gswt='git switch --track' + +# tag +alias gt='git tag' +alias gta='git tag -a' +alias gtd='git tag -d' +alias gtl='git tag -l' + +case $OSTYPE in + darwin*) + alias gtls="git tag -l | gsort -V" + ;; + *) + alias gtls='git tag -l | sort -V' + ;; +esac + +# functions +function gdv() { + git diff --ignore-all-space "$@" | vim -R - +} + +function get_default_branch() { + if git branch | grep -q '^. main\s*$'; then + echo main + else + echo master + fi +} diff --git a/dot_bash_it/aliases/available/gitsvn.aliases.bash b/dot_bash_it/aliases/available/gitsvn.aliases.bash new file mode 100644 index 0000000..3c57844 --- /dev/null +++ b/dot_bash_it/aliases/available/gitsvn.aliases.bash @@ -0,0 +1,7 @@ +# shellcheck shell=bash +about-alias 'common git-svn abbreviations' + +# Aliases +alias gsr='git svn rebase' +alias gsc='git svn dcommit' +alias gsi='git svn info' diff --git a/dot_bash_it/aliases/available/heroku.aliases.bash b/dot_bash_it/aliases/available/heroku.aliases.bash new file mode 100644 index 0000000..4c82259 --- /dev/null +++ b/dot_bash_it/aliases/available/heroku.aliases.bash @@ -0,0 +1,34 @@ +# shellcheck shell=bash +about-alias 'heroku task abbreviations' + +# heroku +alias h='heroku' +alias hl='heroku list' +alias hi='heroku info' +alias ho='heroku open' + +# dynos and workers +alias hd='heroku dynos' +alias hw='heroku workers' + +# rake console +alias hr='heroku rake' +alias hcon='heroku console' + +# new and restart +alias hnew='heroku create' +alias hrestart='heroku restart' + +# logs +alias hlog='heroku logs' +alias hlogs='heroku logs' + +# maint +alias hon='heroku maintenance:on' +alias hoff='heroku maintenance:off' + +# heroku configs +alias hc='heroku config' +alias hca='heroku config:add' +alias hcr='heroku config:remove' +alias hcc='heroku config:clear' diff --git a/dot_bash_it/aliases/available/hg.aliases.bash b/dot_bash_it/aliases/available/hg.aliases.bash new file mode 100644 index 0000000..d9101a0 --- /dev/null +++ b/dot_bash_it/aliases/available/hg.aliases.bash @@ -0,0 +1,6 @@ +# shellcheck shell=bash +about-alias 'mercurial abbreviations' + +alias hs='hg status' +alias hsum='hg summary' +alias hcm='hg commit -m' diff --git a/dot_bash_it/aliases/available/homebrew-cask.aliases.bash b/dot_bash_it/aliases/available/homebrew-cask.aliases.bash new file mode 100644 index 0000000..43d206d --- /dev/null +++ b/dot_bash_it/aliases/available/homebrew-cask.aliases.bash @@ -0,0 +1,11 @@ +# shellcheck shell=bash +about-alias 'Some aliases for Homebrew Cask' + +alias bcin='brew cask install' +alias bcrm='brew cask uninstall' +alias bczp='brew cask zap' +alias bccl='brew cask cleanup' +alias bcls='brew cask list' +alias bcinf='brew cask info' +alias bcdr='brew cask doctor' +alias bced='brew cask edit' diff --git a/dot_bash_it/aliases/available/homebrew.aliases.bash b/dot_bash_it/aliases/available/homebrew.aliases.bash new file mode 100644 index 0000000..f35a38d --- /dev/null +++ b/dot_bash_it/aliases/available/homebrew.aliases.bash @@ -0,0 +1,13 @@ +# shellcheck shell=bash +about-alias 'Some aliases for Homebrew' + +alias bup='brew update && brew upgrade' +alias bout='brew outdated' +alias bin='brew install' +alias brm='brew uninstall' +alias bcl='brew cleanup' +alias bls='brew list' +alias bsr='brew search' +alias binf='brew info' +alias bdr='brew doctor' +alias bed='brew edit' diff --git a/dot_bash_it/aliases/available/homesick.aliases.bash b/dot_bash_it/aliases/available/homesick.aliases.bash new file mode 100644 index 0000000..00101ee --- /dev/null +++ b/dot_bash_it/aliases/available/homesick.aliases.bash @@ -0,0 +1,23 @@ +# shellcheck shell=bash +about-alias 'homesick aliases' + +# Aliases +alias sikhm="homesick cd dotfiles" +alias sikclone="homesick clone" +alias sikcomt="homesick commit dotfiles" +alias sikdstry="homesick destroy" +alias sikdif="homesick diff dotfiles" +alias sikexec="homesick exec dotfiles" +alias sikexeca="homesick exec_all" +alias sikgen="homesick generate" +alias sikhlp="homesick help" +alias siklnk="homesick link dotfiles" +alias sikls="homesick list" +alias sikopn="homesick open dotfiles" +alias sikpll="homesick pull dotfiles" +alias sikpsh="homesick push dotfiles" +alias sikrc="homesick rc dotfiles" +alias sikpth="homesick show_path dotfiles" +alias sikst="homesick status dotfiles" +alias sikulnk="homesick unlink dotfiles" +alias sikv="homesick version" diff --git a/dot_bash_it/aliases/available/jitsu.aliases.bash b/dot_bash_it/aliases/available/jitsu.aliases.bash new file mode 100644 index 0000000..f056e74 --- /dev/null +++ b/dot_bash_it/aliases/available/jitsu.aliases.bash @@ -0,0 +1,49 @@ +# shellcheck shell=bash +about-alias 'jitsu task abbreviations' + +# jitsu +alias j='jitsu' +alias jl='jitsu login' +alias jo='jitsu logout' + +# deploy and update +alias jd='jitsu apps deploy' +alias ju='jitsu apps update' + +# new and start, restart, stop +alias jn='jitsu apps create' +alias js='jitsu apps start' +alias jr='jitsu apps restart' +alias jx='jitsu apps stop' + +# logs +alias jll='jitsu logs' +alias jlog='jitsu logs' +alias jlogs='jitsu logs' + +# env +alias je='jitsu env' +alias jel='jitsu env list' +alias jes='jitsu env set' +alias jeg='jitsu env get' +alias jed='jitsu env delete' +alias jec='jitsu env clear' +alias jesv='jitsu env save' +alias jeld='jitsu env load' + +# configuration +alias jc='jitsu conf' +alias jcl='jitsu config list' +alias jcs='jitsu config set' +alias jcg='jitsu config get' +alias jcd='jitsu config delete' + +# list and install, view +alias jls='jitsu list' +alias jin='jitsu install' +alias jv='jitsu apps view' + +# Database, Snapshots and Tokens +alias jdb='jitsu databases' +alias jss='jitsu snapshots' +alias jto='jitsu tokens' diff --git a/dot_bash_it/aliases/available/kubectl.aliases.bash b/dot_bash_it/aliases/available/kubectl.aliases.bash new file mode 100644 index 0000000..aaca4ca --- /dev/null +++ b/dot_bash_it/aliases/available/kubectl.aliases.bash @@ -0,0 +1,20 @@ +# shellcheck shell=bash +about-alias 'kubectl aliases' + +function _set_pkg_aliases() { + if _command_exists kubectl; then + alias kc='kubectl' + alias kcgp='kubectl get pods' + alias kcgd='kubectl get deployments' + alias kcgn='kubectl get nodes' + alias kcdp='kubectl describe pod' + alias kcdd='kubectl describe deployment' + alias kcdn='kubectl describe node' + alias kcgpan='kubectl get pods --all-namespaces' + alias kcgdan='kubectl get deployments --all-namespaces' + # launches a disposable netshoot pod in the k8s cluster + alias kcnetshoot='kubectl run netshoot-$(date +%s) --rm -i --tty --image nicolaka/netshoot -- /bin/bash' + fi +} + +_set_pkg_aliases diff --git a/dot_bash_it/aliases/available/laravel.aliases.bash b/dot_bash_it/aliases/available/laravel.aliases.bash new file mode 100644 index 0000000..50a9749 --- /dev/null +++ b/dot_bash_it/aliases/available/laravel.aliases.bash @@ -0,0 +1,74 @@ +# shellcheck shell=bash +about-alias 'laravel artisan abbreviations' + +# A list of useful laravel aliases + +alias laravel='${HOME?}/.composer/vendor/bin/laravel' +# asset +alias a:apub='php artisan asset:publish' + +# auth +alias a:remclear='php artisan auth:clear-reminders' +alias a:remcontroller='php artisan auth:reminders-controller' +alias a:remtable='php artisan auth:reminders-table' + +# cache +alias a:cacheclear='php artisan cache:clear' + +# command +alias a:command='php artisan command:make' + +# config +alias a:confpub='php artisan config:publish' + +# controller +alias a:controller='php artisan make:controller' + +# db +alias a:seed='php artisan db:seed' + +# key +alias a:key='php artisan key:generate' + +# migrate +alias a:migrate='php artisan migrate' +alias a:mig='a:migrate' +alias a:miginstall='php artisan migrate:install' +alias a:migmake='php artisan migrate:make' +alias a:migcreate='php artisan migrate:create' +alias a:migpublish='php artisan migrate:publish' +alias a:migrefresh='php artisan migrate:refresh' +alias a:migreset='php artisan migrate:reset' +alias a:migrollback='php artisan migrate:rollback' +alias a:rollback='a:migrollback' + +# queue +alias a:qfailed='php artisan queue:failed' +alias a:qfailedtable='php artisan queue:failed-table' +alias a:qflush='php artisan queue:flush' +alias a:qforget='php artisan queue:forget' +alias a:qlisten='php artisan queue:listen' +alias a:qretry='php artisan queue:retry' +alias a:qsubscribe='php artisan queue:subscribe' +alias a:qwork='php artisan queue:work' + +# session +alias a:stable='php artisan session:table' + +# view +alias a:vpub='php artisan view:publish' + +# misc +alias a:='php artisan' +alias a:changes='php artisan changes' +alias a:down='php artisan down' +alias a:env='php artisan env' +alias a:help='php artisan help' +alias a:list='php artisan list' +alias a:optimize='php artisan optimize' +alias a:routes='php artisan routes' +alias a:serve='php artisan serve' +alias a:tail='php artisan tail' +alias a:tinker='php artisan tinker' +alias a:up='php artisan up' +alias a:work='php artisan workbench' diff --git a/dot_bash_it/aliases/available/maven.aliases.bash b/dot_bash_it/aliases/available/maven.aliases.bash new file mode 100644 index 0000000..737826e --- /dev/null +++ b/dot_bash_it/aliases/available/maven.aliases.bash @@ -0,0 +1,14 @@ +# shellcheck shell=bash +about-alias 'maven abbreviations' + +alias mci='mvn clean install' +alias mi='mvn install' +alias mcp='mvn clean package' +alias mp='mvn package' +alias mrprep='mvn release:prepare' +alias mrperf='mvn release:perform' +alias mrrb='mvn release:rollback' +alias mdep='mvn dependency:tree' +alias mpom='mvn help:effective-pom' +alias mcisk='mci -Dmaven.test.skip=true' +alias mcpsk='mcp -Dmaven.test.skip=true' diff --git a/dot_bash_it/aliases/available/msys2.aliases.bash b/dot_bash_it/aliases/available/msys2.aliases.bash new file mode 100644 index 0000000..da41cc8 --- /dev/null +++ b/dot_bash_it/aliases/available/msys2.aliases.bash @@ -0,0 +1,14 @@ +# shellcheck shell=bash +about-alias 'MSYS2 aliases' + +LS_COMMON="-hG" +LS_COMMON="$LS_COMMON --color=auto" +LS_COMMON="$LS_COMMON -I NTUSER.DAT\* -I ntuser.dat\*" + +# alias +# setup the main ls alias if we've established common args +alias ls='command ls ${LS_COMMON:-}' +alias ll="ls -l" +alias la="ls -a" +alias lal="ll -a" +alias lf="ls -F" diff --git a/dot_bash_it/aliases/available/node.aliases.bash b/dot_bash_it/aliases/available/node.aliases.bash new file mode 100644 index 0000000..a9e2974 --- /dev/null +++ b/dot_bash_it/aliases/available/node.aliases.bash @@ -0,0 +1,8 @@ +# shellcheck shell=bash +about-alias 'the Node.js environment aliases' + +# alias to setup nodejs development environment +alias node-dev='export NODE_ENV=development' + +# alias to setup nodejs production environment +alias node-prod='export NODE_ENV=production' diff --git a/dot_bash_it/aliases/available/npm.aliases.bash b/dot_bash_it/aliases/available/npm.aliases.bash new file mode 100644 index 0000000..27cf5c9 --- /dev/null +++ b/dot_bash_it/aliases/available/npm.aliases.bash @@ -0,0 +1,43 @@ +# shellcheck shell=bash +about-alias 'common npm abbreviations' + +# Aliases + +# npm +alias ni='npm install' +alias nis='npm install --save' +alias nid='npm install --save-dev' +alias nit='npm install-test' +alias nits='npm install-test --save' +alias nitd='npm install-test --save-dev' +alias nu='npm uninstall' +alias nus='npm uninstall --save' +alias nusd='npm uninstall --save-dev' +alias np='npm publish' +alias nup='npm unpublish' +alias nlk='npm link' +alias nod='npm outdated' +alias nrb='npm rebuild' +alias nud='npm update' +alias nr='npm run' +alias nls='npm list --depth=0 2>/dev/null' +alias nlsg='npm list -g --depth=0 2>/dev/null' +alias nt='npm test' + +# npx +alias nx='npx' +alias nxplease='npx $(fc -ln -1)' +alias nxn='npx --no-install ' +alias nxp='npx -p ' +alias nxnp='npx --no-install -p ' +alias nxq='npx -q ' +alias nxnq='npx --no-install -q ' +alias nxqp='npx -q -p ' +alias nxnqp='npx --no-install -q -p ' +alias nxni='npx --no-install --ignore-existing ' +alias nxip='npx --ignore-existing -p ' +alias nxnip='npx --no-install --ignore-existing -p ' +alias nxqi='npx -q --ignore-existing ' +alias nxniq='npx --no-install --ignore-existing -q ' +alias nxiqp='npx --ignore-existing -q -p ' +alias nxniqp='npx --no-install --ignore-existing -q -p ' diff --git a/dot_bash_it/aliases/available/osx.aliases.bash b/dot_bash_it/aliases/available/osx.aliases.bash new file mode 100644 index 0000000..0a16c06 --- /dev/null +++ b/dot_bash_it/aliases/available/osx.aliases.bash @@ -0,0 +1,57 @@ +# shellcheck shell=bash +about-alias 'osx-specific aliases' + +# Desktop Programs +alias fireworks='open -a "/Applications/Adobe Fireworks CS3/Adobe Fireworks CS3.app"' +alias photoshop='open -a "/Applications/Adobe Photoshop CS3/Adobe Photoshop.app"' +alias preview='open -a "${PREVIEW?}"' +alias xcode='open -a "/Applications/XCode.app"' +alias filemerge='open -a "/Developer/Applications/Utilities/FileMerge.app"' +alias safari='open -a safari' +alias firefox='open -a firefox' +alias chrome='open -a "Google Chrome"' +alias chromium='open -a chromium' +alias brave='open -a "Brave Browser"' +alias dashcode='open -a dashcode' +alias f='open -a Finder ' +alias fh='open -a Finder .' +alias textedit='open -a TextEdit' +alias hex='open -a "Hex Fiend"' +alias skype='open -a Skype' +alias mou='open -a Mou' +alias subl='open -a "Sublime Text"' + +if [[ -s /usr/bin/firefox ]]; then + unalias firefox +fi + +# Requires growlnotify, which can be found in the Growl DMG under "Extras" +alias grnot='growlnotify -s -t Terminal -m "Done"' + +# Get rid of those pesky .DS_Store files recursively +alias dsclean='find . -type f -name .DS_Store -delete' + +# Track who is listening to your iTunes music +alias whotunes='lsof -r 2 -n -P -F n -c iTunes -a -i TCP@`hostname`:3689' + +# Flush your dns cache +alias flush='dscacheutil -flushcache' + +# Show/hide hidden files (for Mac OS X Mavericks) +alias showhidden='defaults write com.apple.finder AppleShowAllFiles TRUE' +alias hidehidden='defaults write com.apple.finder AppleShowAllFiles FALSE' + +# From http://apple.stackexchange.com/questions/110343/copy-last-command-in-terminal +# shellcheck disable=SC2142 # The quoting confuses `shellcheck`... +alias copyLastCmd="fc -ln -1 | awk '{\$1=\$1}1' ORS='' | pbcopy" + +# Use Finder's Quick Look on a file (^C or space to close) +alias ql='qlmanage -p 2>/dev/null' + +# Mute/Unmute the system volume. Plays nice with all other volume settings. +alias mute='osascript -e "set volume output muted true"' +alias unmute='osascript -e "set volume output muted false"' + +# Pin to the tail of long commands for an audible alert after long processes +## curl http://downloads.com/hugefile.zip; lmk +alias lmk='say "Process complete."' diff --git a/dot_bash_it/aliases/available/phoenix.aliases.bash b/dot_bash_it/aliases/available/phoenix.aliases.bash new file mode 100644 index 0000000..08cef4f --- /dev/null +++ b/dot_bash_it/aliases/available/phoenix.aliases.bash @@ -0,0 +1,49 @@ +# shellcheck shell=bash +about-alias 'phoenix abbreviations' + +# Phoenix Commands +alias i='iex' +alias ips='iex -S mix phx.server' +alias ism='iex -S mix' +alias m='mix' +alias mab='mix archive.build' +alias mai='mix archive.install' +alias mat='mix app.tree' +alias mc='mix compile' +alias mcv='mix compile --verbose' +alias mcx='mix compile.xref' +alias mdc='mix deps.compile' +alias mdg='mix deps.get' +alias mdgc='mix do deps.get, deps.compile' +alias mdu='mix deps.update' +alias mdt='mix deps.tree' +alias mdua='mix deps.update --all' +alias mdun='mix deps.unlock' +alias mduu='mix deps.unlock --unused' +alias meb='mix escript.build' +alias mec='mix ecto.create' +alias mecm='mix do ecto.create, ecto.migrate' +alias med='mix ecto.drop' +alias mem='mix ecto.migrate' +alias megm='mix ecto.gen.migration' +alias merb='mix ecto.rollback' +alias mers='mix ecto.reset' +alias mho='mix hex.outdated' +alias mlh='mix local.hex' +alias mn='mix new' +alias mns='mix new --sup' +alias mpgc='mix phx.gen.channel' +alias mpgh='mix phx.gen.html' +alias mpgj='mix phx.gen.json' +alias mpgm='mix phx.gen.model' +alias mpgs='mix phx.gen.secret' +alias mpn='mix phx.new' +alias mpr='mix phx.routes' +alias mps='mix phx.server' +alias mr='mix run' +alias mrnh='mix run --no-halt' +alias mrl='mix release' +alias mt='mix test' +alias mts='mix test --stale' +alias mtw='mix test.watch' +alias mx='mix xref' diff --git a/dot_bash_it/aliases/available/puppet.aliases.bash b/dot_bash_it/aliases/available/puppet.aliases.bash new file mode 100644 index 0000000..c92d13b --- /dev/null +++ b/dot_bash_it/aliases/available/puppet.aliases.bash @@ -0,0 +1,9 @@ +# shellcheck shell=bash +about-alias 'puppet aliases' + +# Aliases +alias pupval="puppet parser validate *.pp" +alias puplint="puppet-lint *.pp" +alias pupagt="puppet agent -t" +alias pupagtd="puppet agent -t --debug" +alias pupapp="puppet apply" diff --git a/dot_bash_it/aliases/available/pyrocms.aliases.bash b/dot_bash_it/aliases/available/pyrocms.aliases.bash new file mode 100644 index 0000000..77865a2 --- /dev/null +++ b/dot_bash_it/aliases/available/pyrocms.aliases.bash @@ -0,0 +1,152 @@ +# shellcheck shell=bash +about-alias 'pyrocms abbreviations' + +### +## PyroCMS 3.4 bash aliases +## @author Denis Efremov +### + +# general +alias a:cl="php artisan clear-compiled" # Remove the compiled class file +alias a:d="php artisan down" # Put the application into maintenance mode +alias a:e="php artisan env" # Display the current framework environment +alias a:h="php artisan help" # Displays help for a command +alias a:i="php artisan install" # Install the Streams Platform. +alias a:ls="php artisan list" # Lists commands +alias a:mg="php artisan migrate" # Run the database migrations +alias a:op="php artisan optimize" # Optimize the framework for better performance (deprecated) +alias a:pr="php artisan preset" # Swap the front-end scaffolding for the application +alias a:s="php artisan serve" # Serve the application on the PHP development server +alias a:u="php artisan up" # Bring the application out of maintenance mode + +# addon +alias a:ad:i="php artisan addon:install" # Install an addon. +alias a:ad:p="php artisan addon:publish" # Publish an the configuration and translations for an addon. +alias a:ad:r="php artisan addon:reinstall" # Reinstall an addon. +alias a:ad:u="php artisan addon:uninstall" # Uninstall an addon. + +# app +alias a:ap:n="php artisan app:name" # Set the application namespace +alias a:ap:p="php artisan app:publish" # Publish general application override files. + +# assets +alias a:as:cl="php artisan assets:clear" # Clear compiled public assets. + +# auth +alias a:au:clrs="php artisan auth:clear-resets" # Flush expired password reset tokens + +# cache +alias a:ca:cl="php artisan cache:clear" # Flush the application cache +alias a:ca:f="php artisan cache:forget" # Remove an item from the cache +alias a:ca:t="php artisan cache:table" # Create a migration for the cache database table + +# config +alias a:co:ca="php artisan config:cache" # Create a cache file for faster configuration loading +alias a:co:cl="php artisan config:clear" # Remove the configuration cache file + +# db +alias a:db:s="php artisan db:seed" # Seed the database with records + +# env +alias a:en:s="php artisan env:set" # Set an environmental value. + +# event +alias a:ev:g="php artisan event:generate" # Generate the missing events and listeners based on registration + +# extension +alias a:ex:i="php artisan extension:install" # Install a extension. +alias a:ex:r="php artisan extension:reinstall" # Reinstall a extension. +alias a:ex:u="php artisan extension:uninstall" # Uninstall a extension. + +# files +alias a:fi:cl="php artisan files:clean" # Clean missing files from the files table. + +# key +alias a:ke:g="php artisan key:generate" # Set the application key + +# make +alias a:mk:ad="php artisan make:addon" # Create a new addon. +alias a:mk:au="php artisan make:auth" # Scaffold basic login and registration views and routes +alias a:mk:cm="php artisan make:command" # Create a new Artisan command +alias a:mk:ct="php artisan make:controller" # Create a new controller class +alias a:mk:ev="php artisan make:event" # Create a new event class +alias a:mk:fa="php artisan make:factory" # Create a new model factory +alias a:mk:j="php artisan make:job" # Create a new job class +alias a:mk:li="php artisan make:listener" # Create a new event listener class +alias a:mk:ma="php artisan make:mail" # Create a new email class +alias a:mk:mw="php artisan make:middleware" # Create a new middleware class +alias a:mk:mg="php artisan make:migration" # Create a new migration file +alias a:mk:md="php artisan make:model" # Create a new Eloquent model class +alias a:mk:no="php artisan make:notification" # Create a new notification class +alias a:mk:po="php artisan make:policy" # Create a new policy class +alias a:mk:pr="php artisan make:provider" # Create a new service provider class +alias a:mk:rq="php artisan make:request" # Create a new form request class +alias a:mk:rs="php artisan make:resource" # Create a new resource +alias a:mk:rl="php artisan make:rule" # Create a new validation rule +alias a:mk:sd="php artisan make:seeder" # Create a new seeder class +alias a:mk:st="php artisan make:stream" # Make a streams entity namespace. +alias a:mk:ts="php artisan make:test" # Create a new test class + +# migrate +alias a:mg:fr="php artisan migrate:fresh" # Drop all tables and re-run all migrations +alias a:mg:i="php artisan migrate:install" # Create the migration repository +alias a:mg:rf="php artisan migrate:refresh" # Reset and re-run all migrations +alias a:mg:rs="php artisan migrate:reset" # Rollback all database migrations +alias a:mg:rl="php artisan migrate:rollback" # Rollback the last database migration +alias a:mg:st="php artisan migrate:status" # Show the status of each migration + +# module +alias a:mo:i="php artisan module:install" # Install a module. +alias a:mo:r="php artisan module:reinstall" # Reinstall a module. +alias a:mo:u="php artisan module:uninstall" # Uninstall a module. + +# notifications +alias a:no:tb="php artisan notifications:table" # Create a migration for the notifications table + +# package +alias a:pk:d="php artisan package:discover" # Rebuild the cached package manifest + +# queue +alias a:qu:fa="php artisan queue:failed" # List all of the failed queue jobs +alias a:qu:ft="php artisan queue:failed-table" # Create a migration for the failed queue jobs database table +alias a:qu:fl="php artisan queue:flush" # Flush all of the failed queue jobs +alias a:qu:fg="php artisan queue:forget" # Delete a failed queue job +alias a:qu:li="php artisan queue:listen" # Listen to a given queue +alias a:qu:rs="php artisan queue:restart" # Restart queue worker daemons after their current job +alias a:qu:rt="php artisan queue:retry" # Retry a failed queue job +alias a:qu:tb="php artisan queue:table" # Create a migration for the queue jobs database table +alias a:qu:w="php artisan queue:work" # Start processing jobs on the queue as a daemon + +# route +alias a:ro:ca="php artisan route:cache" # Create a route cache file for faster route registration +alias a:ro:cl="php artisan route:clear" # Remove the route cache file +alias a:ro:ls="php artisan route:list" # List all registered routes + +# schedule +alias a:sc:r="php artisan schedule:run" # Run the scheduled commands + +# scout +alias a:su:fl="php artisan scout:flush" # Flush all of the model's records from the index +alias a:su:im="php artisan scout:import" # Import the given model into the search index + +# session +alias a:se:tb="php artisan session:table" # Create a migration for the session database table + +# storage +alias a:sg:l="php artisan storage:link" # Create a symbolic link from "public/storage" to "storage/app/public" + +# streams +alias a:st:cl="php artisan streams:cleanup" # Cleanup streams entry models. +alias a:st:co="php artisan streams:compile" # Compile streams entry models. +alias a:st:d="php artisan streams:destroy" # Destroy a namespace. +alias a:st:p="php artisan streams:publish" # Publish configuration and translations for streams. +alias a:st:r="php artisan streams:refresh" # Refresh streams generated components. + +# tntsearch +alias a:tn:im="php artisan tntsearch:import" # Import the given model into the search index + +# vendor +alias a:ve:p="php artisan vendor:publish" # Publish any publishable assets from vendor packages + +# view +alias a:vi:cl="php artisan view:clear" # Clear all compiled view files diff --git a/dot_bash_it/aliases/available/rails.aliases.bash b/dot_bash_it/aliases/available/rails.aliases.bash new file mode 100644 index 0000000..4de4faf --- /dev/null +++ b/dot_bash_it/aliases/available/rails.aliases.bash @@ -0,0 +1,22 @@ +# shellcheck shell=bash +about-alias 'rails abbreviations' + +# Rails Commands +alias r='rails' +alias rg='rails g' +alias rs='rails s' +alias rc='rails c' +alias rn='rails new' +alias rb='rails dbconsole' +alias rp='rails plugin' +alias ra='rails application' +alias rd='rails destroy' +alias dbm='rake db:migrate' + +alias ss='script/server' +alias ts="thin start" # thin server +alias sc='script/console' +alias restartapp='touch tmp/restart.txt' +alias restart='touch tmp/restart.txt' # restart passenger +alias devlog='tail -f log/development.log' +alias taild='tail -f log/development.log' # tail dev log diff --git a/dot_bash_it/aliases/available/svn.aliases.bash b/dot_bash_it/aliases/available/svn.aliases.bash new file mode 100644 index 0000000..4d3de46 --- /dev/null +++ b/dot_bash_it/aliases/available/svn.aliases.bash @@ -0,0 +1,15 @@ +# shellcheck shell=bash +about-alias 'common svn abbreviations' + +# Aliases +alias svs='svn status' +alias sa='svn add' +alias sci='svn ci -m' +alias sco='svn co' +alias sup='svn up' +alias scu='svn cleanup' +alias sli='svn list' +alias sdel='svn delete' +alias sdif='svn diff' +alias slog='svn log' +alias smv='svn move' diff --git a/dot_bash_it/aliases/available/systemd.aliases.bash b/dot_bash_it/aliases/available/systemd.aliases.bash new file mode 100644 index 0000000..57351ae --- /dev/null +++ b/dot_bash_it/aliases/available/systemd.aliases.bash @@ -0,0 +1,22 @@ +# shellcheck shell=bash +about-alias 'systemd service' + +case $OSTYPE in + linux*) + # Improve aliases by bringing the common root `sc|scd` + `sre` for action + `u` for user + alias sc='systemctl' + alias scu='systemctl --user' + alias scdr='systemctl daemon-reload' + alias scdru='systemctl --user daemon-reload' + alias scr='systemctl restart' + alias scru='systemctl --user restart' + alias sce='systemctl stop' + alias sceu='systemctl --user stop' + alias scs='systemctl start' + alias scsu='systemctl --user start' + # Keeping previous aliases for a non-breaking change. + alias scue='sceu' + alias scus='scsu' + alias scur='scdru' + ;; +esac diff --git a/dot_bash_it/aliases/available/terraform.aliases.bash b/dot_bash_it/aliases/available/terraform.aliases.bash new file mode 100644 index 0000000..baa9b0c --- /dev/null +++ b/dot_bash_it/aliases/available/terraform.aliases.bash @@ -0,0 +1,8 @@ +# shellcheck shell=bash +about-alias 'Aliases for Terraform and Terragrunt' + +alias tf='terraform' +alias tfv='terraform validate' +alias tfp='terraform plan' +alias tfa='terraform apply' +alias tfd='terraform destroy' diff --git a/dot_bash_it/aliases/available/terragrunt.aliases.bash b/dot_bash_it/aliases/available/terragrunt.aliases.bash new file mode 100644 index 0000000..9489290 --- /dev/null +++ b/dot_bash_it/aliases/available/terragrunt.aliases.bash @@ -0,0 +1,13 @@ +# shellcheck shell=bash +about-alias 'Aliases for Terraform and Terragrunt' + +alias tg='terragrunt' +alias tgv='terragrunt validate' +alias tgp='terragrunt plan' +alias tga='terragrunt apply' +alias tgd='terragrunt destroy' + +alias tgva='terragrunt validate-all' +alias tgpa='terragrunt plan-all' +alias tgaa='terragrunt apply-all' +alias tgda='terragrunt destroy-all' diff --git a/dot_bash_it/aliases/available/textmate.aliases.bash b/dot_bash_it/aliases/available/textmate.aliases.bash new file mode 100644 index 0000000..e53eed1 --- /dev/null +++ b/dot_bash_it/aliases/available/textmate.aliases.bash @@ -0,0 +1,10 @@ +# shellcheck shell=bash +about-alias 'textmate abbreviations' + +case $OSTYPE in + darwin*) + # Textmate + alias e='mate . &' + alias et='mate app config db lib public script test spec config.ru Gemfile Rakefile README &' + ;; +esac diff --git a/dot_bash_it/aliases/available/tmux.aliases.bash b/dot_bash_it/aliases/available/tmux.aliases.bash new file mode 100644 index 0000000..192db5b --- /dev/null +++ b/dot_bash_it/aliases/available/tmux.aliases.bash @@ -0,0 +1,6 @@ +# shellcheck shell=bash +about-alias 'Tmux terminal multiplexer' + +alias txl='tmux ls' +alias txn='tmux new -s' +alias txa='tmux a -t' diff --git a/dot_bash_it/aliases/available/todo.txt-cli.aliases.bash b/dot_bash_it/aliases/available/todo.txt-cli.aliases.bash new file mode 100644 index 0000000..359321a --- /dev/null +++ b/dot_bash_it/aliases/available/todo.txt-cli.aliases.bash @@ -0,0 +1,8 @@ +# shellcheck shell=bash +about-alias 'todo.txt-cli abbreviations' + +alias tls='"${TODO?}" ls' +alias ta='"${TODO?}" a' +alias trm='"${TODO?}" rm' +alias tdo='"${TODO?}" do' +alias tpri='"${TODO?}" pri' diff --git a/dot_bash_it/aliases/available/uuidgen.aliases.bash b/dot_bash_it/aliases/available/uuidgen.aliases.bash new file mode 100644 index 0000000..45c3682 --- /dev/null +++ b/dot_bash_it/aliases/available/uuidgen.aliases.bash @@ -0,0 +1,11 @@ +# shellcheck shell=bash +about-alias 'uuidgen aliases' + +if _command_exists uuid; then # Linux + alias uuidu="uuid | tr '[:lower:]' '[:upper:]'" + alias uuidl=uuid +elif _command_exists uuidgen; then # macOS/BSD + alias uuidu="uuidgen" + alias uuid="uuidgen | tr '[:upper:]' '[:lower:]'" # because upper case is like YELLING + alias uuidl=uuid +fi diff --git a/dot_bash_it/aliases/available/vagrant.aliases.bash b/dot_bash_it/aliases/available/vagrant.aliases.bash new file mode 100644 index 0000000..a949cbb --- /dev/null +++ b/dot_bash_it/aliases/available/vagrant.aliases.bash @@ -0,0 +1,22 @@ +# shellcheck shell=bash +about-alias 'vagrant aliases' + +# Aliases +alias vhl='vagrant hosts list' +alias vscp='vagrant scp' +alias vsl='vagrant snapshot list' +alias vst='vagrant snapshot take' +alias vup="vagrant up" +alias vupl="vagrant up 2>&1 | tee vagrant.log" +alias vh="vagrant halt" +alias vs="vagrant suspend" +alias vr="vagrant resume" +alias vrl="vagrant reload" +alias vssh="vagrant ssh" +alias vst="vagrant status" +alias vp="vagrant provision" +alias vdstr="vagrant destroy" +# requires vagrant-list plugin +alias vl="vagrant list" +# requires vagrant-hostmanager plugin +alias vhst="vagrant hostmanager" diff --git a/dot_bash_it/aliases/available/vault.aliases.bash b/dot_bash_it/aliases/available/vault.aliases.bash new file mode 100644 index 0000000..4d083fb --- /dev/null +++ b/dot_bash_it/aliases/available/vault.aliases.bash @@ -0,0 +1,15 @@ +# shellcheck shell=bash +about-alias 'vault aliases' + +# Aliases +alias vad="vault delete" +alias val="vault list" +alias var="vault read" +alias varn="vault renew" +alias varv="vault revoke" +alias vasrv="vault server" +alias vas="vault status" +alias vav="vault version" +alias vaw="vault write" +alias vag="vault login -method=github" +alias varv="vault read -field=value" diff --git a/dot_bash_it/aliases/available/vim.aliases.bash b/dot_bash_it/aliases/available/vim.aliases.bash new file mode 100644 index 0000000..f806876 --- /dev/null +++ b/dot_bash_it/aliases/available/vim.aliases.bash @@ -0,0 +1,14 @@ +# shellcheck shell=bash +about-alias 'vim abbreviations' + +_command_exists vim || return + +alias v='vim' +# open the vim help in fullscreen incorporated from +# https://stackoverflow.com/a/4687513 +alias vimh='vim -c ":h | only"' + +# open vim in new tab is taken from +# http://stackoverflow.com/questions/936501/let-gvim-always-run-a-single-instancek +_command_exists mvim && function mvimt { command mvim --remote-tab-silent "$@" || command mvim "$@"; } +_command_exists gvim && function gvimt { command gvim --remote-tab-silent "$@" || command gvim "$@"; } diff --git a/dot_bash_it/aliases/available/yarn.aliases.bash b/dot_bash_it/aliases/available/yarn.aliases.bash new file mode 100644 index 0000000..a2fb6d0 --- /dev/null +++ b/dot_bash_it/aliases/available/yarn.aliases.bash @@ -0,0 +1,26 @@ +# shellcheck shell=bash +about-alias 'yarn package manager aliases' + +# Aliases +alias ya='yarn' +alias yai='yarn init' +alias yaa='yarn add' +alias yaga='yarn global add' +alias yaad='yarn add --dev' +alias yau='yarn upgrade' +alias yarm='yarn remove' +alias yagrm='yarn global remove' +alias yaod='yarn outdated' +alias yapa='yarn pack' +alias yap='yarn publish' +alias yasu='yarn self-update' +alias yaru='yarn run' +alias yat='yarn test' +alias yas='yarn serve' +alias yacc='yarn cache clean' +alias yack='yarn check' +alias yals='yarn list' +alias yain='yarn info' +alias yali='yarn licenses ls' +alias yaloi='yarn login' +alias yaloo='yarn logout' diff --git a/dot_bash_it/clean_files.txt b/dot_bash_it/clean_files.txt new file mode 100644 index 0000000..de0f6c1 --- /dev/null +++ b/dot_bash_it/clean_files.txt @@ -0,0 +1,174 @@ +####################################################################### +# Allow-list of files to be lint-checked by CI +# +# Directory Support +# Directory references are allowed within the file, ie: +# +# themes/powerline +# +# All files under the referenced directory will be checked +# +# Checking Files Locally +# You can manually invoke the check via: +# +# lint_clean_files.sh +# + +# root directories +# +aliases/ +docs/ +hooks/ +scripts/ + +# root files +# +.gitattributes +bash_it.sh +clean_files.txt +install.sh +lint_clean_files.sh + +# completions +# +completion/available/apm.completion.bash +completion/available/awless.completion.bash +completion/available/awscli.completion.bash +completion/available/bash-it.completion.bash +completion/available/brew.completion.bash +completion/available/cargo.completion.bash +completion/available/composer.completion.bash +completion/available/conda.completion.bash +completion/available/consul.completion.bash +completion/available/dart.completion.bash +completion/available/django.completion.bash +completion/available/dmidecode.completion.bash +completion/available/docker-machine.completion.bash +completion/available/docker.completion.bash +completion/available/dotnet.completion.bash +completion/available/gcloud.completion.bash +completion/available/gem.completion.bash +completion/available/git.completion.bash +completion/available/github-cli.completion.bash +completion/available/go.completion.bash +completion/available/helm.completion.bash +completion/available/jboss5.completion.bash +completion/available/jboss7.completion.bash +completion/available/jungle.completion.bash +completion/available/knife.completion.bash +completion/available/kontena.completion.bash +completion/available/kubectl.completion.bash +completion/available/laravel.completion.bash +completion/available/lerna.completion.bash +completion/available/minikube.completion.bash +completion/available/ngrok.completion.bash +completion/available/notify-send.completion.bash +completion/available/npm.completion.bash +completion/available/packer.completion.bash +completion/available/pip.completion.bash +completion/available/pip3.completion.bash +completion/available/pipenv.completion.bash +completion/available/pipx.completion.bash +completion/available/rustup.completion.bash +completion/available/sdkman.completion.bash +completion/available/system.completion.bash +completion/available/vault.completion.bash +completion/available/vuejs.completion.bash +completion/available/wpscan.completion.bash + +# libraries +lib/appearance.bash +lib/colors.bash +lib/command_duration.bash +lib/helpers.bash +lib/history.bash +lib/log.bash +lib/preexec.bash +lib/preview.bash +lib/search.bash +lib/utilities.bash + +# plugins +# +plugins/available/alias-completion.plugin.bash +plugins/available/autojump.plugin.bash +plugins/available/base.plugin.bash +plugins/available/basher.plugin.bash +plugins/available/battery.plugin.bash +plugins/available/blesh.plugin.bash +plugins/available/cmd-returned-notify.plugin.bash +plugins/available/colors.plugin.bash +plugins/available/direnv.plugin.bash +plugins/available/dirs.plugin.bash +plugins/available/docker-machine.plugin.bash +plugins/available/gif.plugin.bash +plugins/available/git-subrepo.plugin.bash +plugins/available/git.plugin.bash +plugins/available/go.plugin.bash +plugins/available/goenv.plugin.bash +plugins/available/history-eternal.plugin.bash +plugins/available/history-search.plugin.bash +plugins/available/history-substring-search.plugin.bash +plugins/available/history.plugin.bash +plugins/available/hub.plugin.bash +plugins/available/java.plugin.bash +plugins/available/jekyll.plugin.bash +plugins/available/jump.plugin.bash +plugins/available/latex.plugin.bash +plugins/available/less-pretty-cat.plugin.bash +plugins/available/man.plugin.bash +plugins/available/nginx.plugin.bash +plugins/available/node.plugin.bash +plugins/available/nodenv.plugin.bash +plugins/available/osx-timemachine.plugin.bash +plugins/available/osx.plugin.bash +plugins/available/percol.plugin.bash +plugins/available/plenv.plugin.bash +plugins/available/projects.plugin.bash +plugins/available/proxy.plugin.bash +plugins/available/pyenv.plugin.bash +plugins/available/python.plugin.bash +plugins/available/rbenv.plugin.bash +plugins/available/ruby.plugin.bash +plugins/available/textmate.plugin.bash +plugins/available/todo.plugin.bash +plugins/available/xterm.plugin.bash +plugins/available/zoxide.plugin.bash + +# tests +# +test/completion/aliases.completion.bats +test/run +test/test_helper.bash + +# themes +# +themes/90210 +themes/agnoster +themes/atomic +themes/axin +themes/bakke +themes/barbuk +themes/base.theme.bash +themes/binaryanomaly +themes/bira +themes/bobby +themes/bobby-python +themes/brainy +themes/brunton +themes/candy +themes/easy +themes/essential +themes/githelpers.theme.bash +themes/modern +themes/norbu +themes/oh-my-posh +themes/p4helpers.theme.bash +themes/pete +themes/powerline +themes/pure +themes/purity + +# vendor init files +# +vendor/.gitattributes diff --git a/dot_bash_it/completion/available/aliases.completion.bash b/dot_bash_it/completion/available/aliases.completion.bash new file mode 100644 index 0000000..f9cc1ed --- /dev/null +++ b/dot_bash_it/completion/available/aliases.completion.bash @@ -0,0 +1,112 @@ +# shellcheck shell=bash +about-plugin 'Automatic completion of aliases' +# Load after all aliases and completions to understand what needs to be completed +# BASH_IT_LOAD_PRIORITY: 800 + +# References: +# http://superuser.com/a/437508/119764 +# http://stackoverflow.com/a/1793178/1228454 + +# Automatically add completion for all aliases to commands having completion functions +function _bash-it-component-completion-callback-on-init-aliases() { + local namespace="alias_completion" + local tmp_file completion_loader alias_name line completions chars + local alias_arg_words new_completion compl_func compl_wrapper alias_defn + + # create array of function completion triggers, keeping multi-word triggers together + IFS=$'\n' read -d '' -ra completions < <(complete -p) + ((${#completions[@]} == 0)) && return 0 + + completions=("${completions[@]##complete -* * -}") # strip all but last option plus trigger(s) + completions=("${completions[@]#complete -}") # strip anything missed + completions=("${completions[@]#? * }") # strip last option and arg, leaving only trigger(s) + completions=("${completions[@]#? }") # strip anything missed + #TODO: this will fail on some completions... + + # create temporary file for wrapper functions and completions + tmp_file="$(mktemp -t "${namespace}-${RANDOM}XXXXXX")" || return 1 + + IFS=$'\n' read -r completion_loader < <(complete -p -D 2> /dev/null) + if [[ "${completion_loader#complete }" =~ '-F'[[:space:]]([[:alnum:]_]+)[[:space:]] ]]; then + completion_loader="${BASH_REMATCH[1]}" + else + completion_loader="" + fi + + # read in " '' ''" lines from defined aliases + # some aliases do have backslashes that needs to be interpreted + # shellcheck disable=SC2162 + while read line; do + line="${line#alias -- }" + line="${line#alias }" + alias_name="${line%%=*}" + alias_defn="${line#*=\'}" # alias definition + alias_defn="${alias_defn%\'}" + alias_cmd="${alias_defn%%[[:space:]]*}" # first word of alias + if [[ ${alias_defn} == ${alias_cmd} ]]; then + alias_args='' + else + alias_args="${alias_defn#*[[:space:]]}" # everything after first word + fi + + # skip aliases to pipes, boolean control structures and other command lists + chars='\|\&\;\)\(\n\<\>' + if [[ "${alias_defn}" =~ [$chars] ]]; then + continue + fi + # avoid expanding wildcards + read -ra alias_arg_words <<< "$alias_args" + + # skip alias if there is no completion function triggered by the aliased command + if ! _bash-it-array-contains-element "$alias_cmd" "${completions[@]}"; then + if [[ -n "$completion_loader" ]]; then + # force loading of completions for the aliased command + "${completion_loader:?}" "${alias_cmd}" + # 124 means completion loader was successful + [[ $? -eq 124 ]] || continue + completions+=("$alias_cmd") + else + continue + fi + fi + new_completion="$(complete -p "$alias_cmd" 2> /dev/null)" + + # create a wrapper inserting the alias arguments if any + if [[ -n $alias_args ]]; then + compl_func="${new_completion/#* -F /}" + compl_func="${compl_func%% *}" + # avoid recursive call loops by ignoring our own functions + if [[ "${compl_func#_"$namespace"::}" == "$compl_func" ]]; then + compl_wrapper="_${namespace}::${alias_name}" + echo "function $compl_wrapper { + local compl_word=\${2?} + local prec_word=\${3?} + # check if prec_word is the alias itself. if so, replace it + # with the last word in the unaliased form, i.e., + # alias_cmd + ' ' + alias_args. + if [[ \$COMP_LINE == \"\$prec_word \$compl_word\" ]]; then + prec_word='$alias_cmd $alias_args' + prec_word=\${prec_word#* } + fi + (( COMP_CWORD += ${#alias_arg_words[@]} )) + COMP_WORDS=(\"$alias_cmd\" \"${alias_arg_words[@]}\" \"\${COMP_WORDS[@]:1}\") + (( COMP_POINT -= \${#COMP_LINE} )) + COMP_LINE=\${COMP_LINE/$alias_name/$alias_cmd $alias_args} + (( COMP_POINT += \${#COMP_LINE} )) + \"$compl_func\" \"$alias_cmd\" \"\$compl_word\" \"\$prec_word\" + }" >> "$tmp_file" + new_completion="${new_completion/ -F $compl_func / -F $compl_wrapper }" + fi + fi + + # replace completion trigger by alias + if [[ -n $new_completion ]]; then + new_completion="${new_completion% *} $alias_name" + echo "$new_completion" >> "$tmp_file" + fi + done < <(alias -p) + # shellcheck source=/dev/null + source "$tmp_file" && command rm -f "$tmp_file" +} + +_bash-it-component-completion-callback-on-init-aliases diff --git a/dot_bash_it/completion/available/apm.completion.bash b/dot_bash_it/completion/available/apm.completion.bash new file mode 100644 index 0000000..c3dcfe4 --- /dev/null +++ b/dot_bash_it/completion/available/apm.completion.bash @@ -0,0 +1,4 @@ +# shellcheck shell=bash +about-completion "apm completion" +# shellcheck disable=SC1090 +source "${BASH_IT}"/vendor/github.com/vigo/apm-bash-completion/apm diff --git a/dot_bash_it/completion/available/awless.completion.bash b/dot_bash_it/completion/available/awless.completion.bash new file mode 100644 index 0000000..98a5d38 --- /dev/null +++ b/dot_bash_it/completion/available/awless.completion.bash @@ -0,0 +1,5 @@ +# shellcheck shell=bash +if _command_exists awless; then + # shellcheck disable=SC1090 + source <(awless completion bash) +fi diff --git a/dot_bash_it/completion/available/awscli.completion.bash b/dot_bash_it/completion/available/awscli.completion.bash new file mode 100644 index 0000000..6b2c90f --- /dev/null +++ b/dot_bash_it/completion/available/awscli.completion.bash @@ -0,0 +1,5 @@ +# shellcheck shell=bash + +if _command_exists aws_completer; then + complete -C "$(command -v aws_completer)" aws +fi diff --git a/dot_bash_it/completion/available/bash-it.completion.bash b/dot_bash_it/completion/available/bash-it.completion.bash new file mode 100644 index 0000000..2259e37 --- /dev/null +++ b/dot_bash_it/completion/available/bash-it.completion.bash @@ -0,0 +1,95 @@ +# shellcheck shell=bash + +function _compreply_candidates() { + local IFS=$'\n' + + read -d '' -ra COMPREPLY < <(compgen -W "${candidates[*]}" -- "${cur}") +} + +function _bash-it() { + local cur prev verb file_type candidates suffix + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD - 1]}" + verb="${COMP_WORDS[1]}" + file_type="${COMP_WORDS[2]:-}" + candidates=('disable' 'enable' 'help' 'migrate' 'reload' 'restart' 'preview' 'profile' 'doctor' 'search' 'show' 'update' 'version') + case "${verb}" in + show) + candidates=('aliases' 'completions' 'plugins') + _compreply_candidates + ;; + help) + if [[ "${prev}" == "aliases" ]]; then + candidates=('all' "$(_bash-it-component-list "${file_type}")") + _compreply_candidates + else + candidates=('aliases' 'completions' 'migrate' 'plugins' 'update') + _compreply_candidates + fi + ;; + profile) + case "${file_type}" in + load | rm) + if [[ "${file_type}" == "$prev" ]]; then + candidates=("${BASH_IT}/profiles"/*.bash_it) + candidates=("${candidates[@]##*/}") + candidates=("${candidates[@]%%.bash_it}") + + _compreply_candidates + fi + ;; + save | list) ;; + *) + candidates=('load' 'save' 'list' 'rm') + _compreply_candidates + ;; + esac + ;; + doctor) + candidates=('errors' 'warnings' 'all') + _compreply_candidates + ;; + update) + if [[ "${cur}" == -* ]]; then + candidates=('-s' '--silent') + else + candidates=('stable' 'dev') + fi + _compreply_candidates + ;; + migrate | reload | restart | search | version) ;; + preview) + _bash-it-preview # completes itself + return 0 + ;; + enable | disable) + if [[ "${verb}" == "enable" ]]; then + suffix="disabled" + else + suffix="enabled" + fi + case "${file_type}" in + alias | completion | plugin) + candidates=('all' "$("_bash-it-component-list-${suffix}" "${file_type}")") + _compreply_candidates + ;; + *) + candidates=('alias' 'completion' 'plugin') + _compreply_candidates + ;; + esac + ;; + *) + _compreply_candidates + ;; + esac +} + +# Activate completion for bash-it and its common misspellings +complete -F _bash-it bash-it +complete -F _bash-it bash-ti +complete -F _bash-it shit +complete -F _bash-it bashit +complete -F _bash-it batshit +complete -F _bash-it bash_it diff --git a/dot_bash_it/completion/available/brew.completion.bash b/dot_bash_it/completion/available/brew.completion.bash new file mode 100644 index 0000000..61998f8 --- /dev/null +++ b/dot_bash_it/completion/available/brew.completion.bash @@ -0,0 +1,30 @@ +# shellcheck shell=bash +cite "about-completion" +about-completion "brew completion" + +# Load late to make sure `system` completion loads first +# BASH_IT_LOAD_PRIORITY: 375 + +if [[ "$OSTYPE" != 'darwin'* ]]; then + _log_warning "unsupported operating system - only 'Darwin' is supported" + return 0 +fi + +# Make sure brew is installed +_bash_it_homebrew_check || return 0 + +if [[ -r "$BASH_IT_HOMEBREW_PREFIX/etc/bash_completion.d/brew" ]]; then + # shellcheck disable=1090 + source "$BASH_IT_HOMEBREW_PREFIX/etc/bash_completion.d/brew" + +elif [[ -r "$BASH_IT_HOMEBREW_PREFIX/Library/Contributions/brew_bash_completion.sh" ]]; then + # shellcheck disable=1090 + source "$BASH_IT_HOMEBREW_PREFIX/Library/Contributions/brew_bash_completion.sh" + +elif [[ -f "$BASH_IT_HOMEBREW_PREFIX/completions/bash/brew" ]]; then + # For the git-clone based installation, see here for more info: + # https://github.com/Bash-it/bash-it/issues/1458 + # https://docs.brew.sh/Shell-Completion + # shellcheck disable=1090 + source "$BASH_IT_HOMEBREW_PREFIX/completions/bash/brew" +fi diff --git a/dot_bash_it/completion/available/bundler.completion.bash b/dot_bash_it/completion/available/bundler.completion.bash new file mode 100644 index 0000000..663a26d --- /dev/null +++ b/dot_bash_it/completion/available/bundler.completion.bash @@ -0,0 +1,273 @@ +#! bash +# bash completion for the `bundle` command. +# +# Copyright (c) 2008 Daniel Luz + +# Permission is hereby granted, free of charge, to any person +# obtaining a copy of this software and associated documentation +# files (the "Software"), to deal in the Software without +# restriction, including without limitation the rights to use, +# copy, modify, merge, publish, distribute, sublicense, and/or sell +# copies of the Software, and to permit persons to whom the +# Software is furnished to do so, subject to the following +# conditions: + +# The above copyright notice and this permission notice shall be +# included in all copies or substantial portions of the Software. + +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +# OTHER DEALINGS IN THE SOFTWARE. +# +# To use, source this file on bash: +# . completion-bundle + +__bundle() { + local bundle_bin=("${_RUBY_COMMAND_PREFIX[@]}" "$1") + local cur prev + _get_comp_words_by_ref -n : cur prev + local bundle_command + local bundle_command_index + __bundle_get_command + COMPREPLY=() + + local options + if [[ $cur = -* && $bundle_command != exec ]]; then + options="-V --help --no-color --no-no-color --verbose --no-verbose" + case $bundle_command in + "") + options="$options --version";; + check) + options="$options --dry-run --gemfile --path -r --retry";; + clean) + options="$options --dry-run --force";; + config) + options="$options --local --global --delete";; + doctor) + options="$options --gemfile --quiet --no-quiet";; + gem) + options="$options -b -e -t --bin --coc --no-coc --edit --exe + --no-exe --ext --no-ext --mit --no-mit --test";; + init) + options="$options --gemspec";; + install) + options="$options --binstubs --clean --deployment --force --frozen + --full-index --gemfile --jobs --local --no-cache + --no-prune --path --quiet --retry --shebang --standalone + --system --trust-policy --with --without";; + lock) + options="$options --add-platform --conservative --full-index + --local --lockfile --major --minor --patch --print + --remove-platform --strict --update";; + package) + options="$options --all --all-platforms";; + platform) + options="$options --ruby";; + show) + options="$options --outdated --paths --no-paths";; + update) + options="$options --bundler --conservative --force --full-index + --group --jobs --local --major --minor --patch --quiet + --ruby --source --strict";; + viz) + options="$options -f -F -R -v -W --file --format --requirements + --no-requirements --version --no-version --without";; + esac + else + case $bundle_command in + "" | help) + options="help install update package exec config + check show outdated console open lock viz init gem + platform clean doctor" + ;; + check | install) + case $prev in + --binstubs | --path) + _filedir -d + return;; + --standalone | --with | --without) + __bundle_complete_groups + return;; + --trust-policy) + options="HighSecurity MediumSecurity LowSecurity + AlmostNoSecurity NoSecurity";; + esac + ;; + config) + case $prev in + config | --*) + case $cur in + local.*) + options=($(__bundle_exec_ruby 'puts Bundler.definition.specs.to_hash.keys')) + options=("${options[*]/#/local.}") + ;; + *) + options=(path frozen without bin gemfile ssl_ca_cert + ssl_client_cert cache_path disable_multisource + ignore_messages retry redirect timeout + force_ruby_platform specific_platform + disable_checksum_validation disable_version_check + allow_offline_install auto_install + cache_all_platforms cache_all clean console + disable_exec_load disable_local_branch_check + disable_shared_gems jobs major_deprecations + no_install no_prune only_update_to_newer_versions + plugins shebang silence_root_warning + ssl_verify_mode system_bindir user_agent) + # We want to suggest the options above as complete words, + # and also "local." and "mirror." as prefixes + # To achieve that, disable automatic space insertion, + # insert it manually, then add the non-spaced prefixes + compopt -o nospace + options=("${options[@]/%/ }") + # And add prefix suggestions + options+=(local. mirror.) + # Override $IFS for completion to work + local IFS=$'\n' + COMPREPLY=($(compgen -W '${options[@]}' -- "$cur")) + return + ;; + esac + ;; + path | local.*) + _filedir -d + return;; + esac + ;; + exec) + if [[ $COMP_CWORD -eq $bundle_command_index ]]; then + # Figure out Bundler's binaries dir + local bundler_bin=$(__bundle_exec_ruby 'puts Bundler.bundle_path + "bin"') + if [[ -d $bundler_bin ]]; then + local binaries=("$bundler_bin"/*) + # If there are binaries, strip directory name and use them + [[ -f "$binaries" ]] && options="${binaries[@]##*/}" + else + # No binaries found; use full command completion + COMPREPLY=($(compgen -c -- "$cur")) + return + fi + else + local _RUBY_COMMAND_PREFIX=("${bundle_bin[@]}" exec) + _command_offset $bundle_command_index + return + fi + ;; + gem) + case $prev in + -e | --edit) + COMPREPLY=($(compgen -c -- "$cur")) + return;; + -t | --test) + options="minitest rspec";; + esac + ;; + update) + case $prev in + --group) + __bundle_complete_groups + return;; + *) + options=($(__bundle_exec_ruby 'puts Bundler.definition.specs.to_hash.keys')) + esac + ;; + viz) + case $prev in + -F | --format) + options="dot jpg png svg";; + -W | --without) + __bundle_complete_groups + return;; + esac + ;; + esac + fi + COMPREPLY=($(compgen -W "${options[*]}" -- "$cur")) +} + +__bundle_get_command() { + local i + for ((i=1; i < $COMP_CWORD; ++i)); do + local arg=${COMP_WORDS[$i]} + + case $arg in + [^-]*) + bundle_command=$arg + bundle_command_index=$((i + 1)) + return;; + --version) + # Command-killer + bundle_command=- + return;; + --help) + bundle_command=help + bundle_command_index=$((i + 1)) + return;; + esac + done +} + +# Provides completion for Bundler group names. +# +# Multiple groups can be entered, separated either by spaces or by colons. +# Input is read from $cur, and the result is directly written to $COMPREPLY. +__bundle_complete_groups() { + # Group being currently written + local cur_group=${cur##*[ :]} + # All groups written before + local prefix=${cur%"$cur_group"} + local groups=$(__bundle_exec_ruby 'puts Bundler.definition.dependencies.map(&:groups).reduce(:|).map(&:to_s)') + if [[ ! $groups ]]; then + COMPREPLY=() + return + fi + # Duplicate "default" and anything already in $prefix, so that `uniq` + # strips it; groups may be separated by ':', ' ', or '\ ' + local excluded=$'\ndefault\n'${prefix//[: \'\"\\]/$'\n'} + # Include them twice to ensure they are duplicates + groups=$groups$excluded$excluded + COMPREPLY=($(compgen -W "$(sort <<<"$groups" | uniq -u)" -- "$cur_group")) + # Prepend prefix to all entries + COMPREPLY=("${COMPREPLY[@]/#/$prefix}") + __ltrim_colon_completions "$cur" +} + +# __bundle_exec_ruby