-
-
Notifications
You must be signed in to change notification settings - Fork 673
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from DiegoMow/master
Sync Feature Branch
- Loading branch information
Showing
93 changed files
with
1,088 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# These are supported funding model platforms | ||
|
||
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] | ||
patreon: nntoan | ||
open_collective: # Replace with a single Open Collective username | ||
ko_fi: # Replace with a single Ko-fi username | ||
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel | ||
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry | ||
liberapay: # Replace with a single Liberapay username | ||
issuehunt: # Replace with a single IssueHunt username | ||
otechie: # Replace with a single Otechie username | ||
custom: ['https://www.buymeacoffee.com/nntoan']# Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Copyright 2017-2020 Toan Nguyen and contributors (https://github.com/ohmybash/oh-my-bash/graphs/contributors) | ||
|
||
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. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
# minikube (Kubernetes CLI) completion | ||
|
||
if command -v minikube &>/dev/null | ||
then | ||
eval "$(minikube completion bash)" | ||
fi |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,3 @@ | |
|
||
# colored ls | ||
export LSCOLORS='Gxfxcxdxdxegedabagacad' | ||
alias ls='ls -G' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# ansible plugin | ||
|
||
## Introduction | ||
|
||
The `ansible plugin` adds several aliases for useful [ansible](https://docs.ansible.com/ansible/latest/index.html) commands and [aliases](#aliases). | ||
|
||
To use it, add `ansible` to the plugins array of your bashrc file: | ||
|
||
``` | ||
plugins=(... ansible) | ||
``` | ||
|
||
## Aliases | ||
|
||
| Command | Description | | ||
|:-------------------------------------------|:--------------------------------------------------------------------| | ||
| `ansible-version` / `aver` | Show the version on ansible installed in this host | | ||
| `ansible-role-init <role name>` / `arinit` | Creates the Ansible Role as per Ansible Galaxy standard | | ||
| `a` | command `ansible` | | ||
| `aconf` | command `ansible-config` | | ||
| `acon` | command `ansible-console` | | ||
| `ainv` | command `ansible-inventory` | | ||
| `aplaybook` | command `ansible-playbook` | | ||
| `ainv` | command `ansible-inventory` | | ||
| `adoc` | command `ansible-doc` | | ||
| `agal` | command `ansible-galaxy` | | ||
| `apull` | command `ansible-pull` | | ||
| `aval` | command `ansible-vault` | | ||
|
||
## Maintainer | ||
|
||
### [Deepankumar](https://github.com/deepan10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Functions | ||
function ansible-version(){ | ||
ansible --version | ||
} | ||
|
||
function ansible-role-init(){ | ||
if ! [ -z $1] ; then | ||
echo "Ansible Role : $1 Creating...." | ||
ansible-galaxy init $1 | ||
tree $1 | ||
else | ||
echo "Usage : ansible-role-init <role name>" | ||
echo "Example : ansible-role-init role1" | ||
fi | ||
} | ||
|
||
# Alias | ||
alias a='ansible ' | ||
alias aconf='ansible-config ' | ||
alias acon='ansible-console ' | ||
alias aver='ansible-version' | ||
alias arinit='ansible-role-init' | ||
alias aplaybook='ansible-playbook ' | ||
alias ainv='ansible-inventory ' | ||
alias adoc='ansible-doc ' | ||
alias agal='ansible-galaxy ' | ||
alias apull='ansible-pull ' | ||
alias aval='ansible-vault' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# brew plugin | ||
|
||
The plugin adds several aliases for common [brew](https://brew.sh) commands. | ||
|
||
To use it, add `brew` to the plugins array of your bashrc file: | ||
|
||
```bash | ||
plugins=(... brew) | ||
``` | ||
|
||
## Aliases | ||
|
||
| Alias | Command | Description | | ||
|--------|----------------------|---------------| | ||
| brewp | `brew pin` | Pin a specified formulae, preventing them from being upgraded when issuing the brew upgrade <formulae> command. | | ||
| brews | `brew list -1` | List installed formulae, one entry per line, or the installed files for a given formulae. | | ||
| brewsp | `brew list --pinned` | Show the versions of pinned formulae, or only the specified (pinned) formulae if formulae are given. | | ||
| bubo | `brew update && brew outdated` | Fetch the newest version of Homebrew and all formulae, then list outdated formulae. | | ||
| bubc | `brew upgrade && brew cleanup` | Upgrade outdated, unpinned brews (with existing install options), then removes stale lock files and outdated downloads for formulae and casks, and removes old versions of installed formulae. | | ||
| bubu | `bubo && bubc` | Updates Homebrew, lists outdated formulae, upgrades oudated and unpinned formulae, and removes stale and outdated downloads and versions. | | ||
| bcubo | `brew update && brew cask outdated` | Fetch the newest version of Homebrew and all formulae, then list outdated casks. | | ||
| bcubc | `brew cask reinstall $(brew cask outdated) && brew cleanup` | Updates outdated casks, then runs cleanup. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
|
||
alias brewp='brew pin' | ||
alias brews='brew list -1' | ||
alias brewsp='brew list --pinned' | ||
alias bubo='brew update && brew outdated' | ||
alias bubc='brew upgrade && brew cleanup' | ||
alias bubu='bubo && bubc' | ||
alias bcubo='brew update && brew cask outdated' | ||
alias bcubc='brew cask reinstall $(brew cask outdated) && brew cleanup' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Golang plugin | ||
|
||
The `golang plugin` plugin adds some aliases for common [Golang](https://golang.org/) commands. | ||
|
||
To use it, add `golang` to the plugins array of your bashrc file: | ||
|
||
``` | ||
plugins=(... golang) | ||
``` | ||
|
||
## Aliases | ||
|
||
| Alias | Command | Description | | ||
| ------- | ----------------------- | ------------------------------------------------------------- | | ||
| gob | `go build` | Build your code | | ||
| goc | `go clean` | Removes object files from package source directories | | ||
| god | `go doc` | Prints documentation comments | | ||
| gof | `go fmt` | Gofmt formats (aligns and indents) Go programs. | | ||
| gofa | `go fmt ./...` | Run go fmt for all packages in current directory, recursively | | ||
| gog | `go get` | Downloads packages and then installs them to $GOPATH | | ||
| goi | `go install` | Compiles and installs packages to $GOPATH | | ||
| gol | `go list` | Lists Go packages | | ||
| gom | `go mod` | Access to operations on modules | | ||
| gop | `cd $GOPATH` | Takes you to $GOPATH | | ||
| gopb | `cd $GOPATH/bin` | Takes you to $GOPATH/bin | | ||
| gops | `cd $GOPATH/src` | Takes you to $GOPATH/src | | ||
| gor | `go run` | Compiles and runs your code | | ||
| got | `go test` | Runs tests | | ||
| gov | `go vet` | Vet examines Go source code and reports suspicious constructs | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/usr/bin/env bash | ||
|
||
alias gob='go build' | ||
alias goc='go clean' | ||
alias god='go doc' | ||
alias gof='go fmt' | ||
alias gofa='go fmt ./...' | ||
alias gog='go get' | ||
alias goi='go install' | ||
alias gol='go list' | ||
alias gom='go mod' | ||
alias gop='cd $GOPATH' | ||
alias gopb='cd $GOPATH/bin' | ||
alias gops='cd $GOPATH/src' | ||
alias gor='go run' | ||
alias got='go test' | ||
alias gov='go vet' |
Oops, something went wrong.