-
-
Notifications
You must be signed in to change notification settings - Fork 757
Code improvements #73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
3f80ca6
oh-my-bash.sh : Replaced $OSTYPE with $(uname)
f51e361
oh-my-bash.sh : Added error handling
f5c0018
oh-my-bash: Improved sanity for non-interactive shell
9dee040
oh-my-bash: Fixed this abomination
016ff57
oh-my-bash: code improvement
acfdadf
oh-my-bash: removed additional space
2f6c777
oh-my-bash: changed extension on .bash
68f95be
oh-my-bash: Double quoting and variable sanitization
a99d2ef
oh-my-bash: Sanitization for i$, not paying for dev licence
5a5488e
templates/bashrc.osh-template: reaction on #42
c324ece
Fixes for bash syntax
161854d
Replace .sh with .bash in all files
de4d2f3
sync
d3748c4
sync
688de57
Attempts to fix brew.completion.bash
15b9c95
Attempt to fix salt.completetion
2345678
themes/agnoster/agnoster.base.bash : QA fix
0c36bbf
themes/rjorgenson/rjorgenson.theme.bash : QA fix
8ba2e51
fixing syntax err
aaa88d2
Attempt to fix QA for salt.completion
ab79502
themes/agnoster.base : attempt to fix QA
26cf9fd
Fixing https://app.codacy.com/app/OhMyBash/oh-my-bash/file/3718039092…
7e6e9b6
QA fix
7970c31
QA: https://app.codacy.com/app/OhMyBash/oh-my-bash/file/37180391040/i…
384d496
Update git-prompt.bash
Kreyren 6cab3b8
Update git-prompt.bash
Kreyren 879609e
Update git-prompt.bash
Kreyren 1b69844
Update git-prompt.bash
Kreyren File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
completions/awscli.completion.sh → completions/awscli.completion.bash
This file contains hidden or 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 |
|---|---|---|
| @@ -1 +1,2 @@ | ||
| #!/usr/bin/env bash | ||
| [[ -x "$(which aws_completer)" ]] &>/dev/null && complete -C "$(which aws_completer)" aws |
This file contains hidden or 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 | ||
| if which brew >/dev/null 2>&1; then | ||
| if [ -f $(brew --prefix '/etc/bash_completion') ]; then | ||
| brew --prefix '/etc/bash_completion' | ||
| fi | ||
|
|
||
| if [ -f $(brew --prefix '/Library/Contributions/brew_bash_completion.bash') ]; then | ||
| brew --prefix '/Library/Contributions/brew_bash_completion.bash' | ||
| fi | ||
| fi |
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
completions/defaults.completion.sh → completions/defaults.completion.bash
This file contains hidden or 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 |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #!/usr/bin/env bash | ||
| # defaults | ||
| # Bash command line completion for defaults | ||
| # | ||
|
|
||
File renamed without changes.
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
File renamed without changes.
File renamed without changes.
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #!/usr/bin/env bash | ||
| # bash/zsh completion support for core Git. | ||
| # | ||
| # Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | ||
|
|
@@ -21,7 +22,7 @@ | |
| # 2) Add the following line to your .bashrc/.zshrc: | ||
| # source ~/.git-completion.bash | ||
| # 3) Consider changing your PS1 to also show the current branch, | ||
| # see git-prompt.sh for details. | ||
| # see git-prompt.bash for details. | ||
| # | ||
| # If you use complex aliases of form '!f() { ... }; f', you can use the null | ||
| # command ':' as the first command in the function body to declare the desired | ||
|
|
@@ -1844,7 +1845,7 @@ _git_config () | |
| return | ||
| ;; | ||
| color.branch|color.diff|color.interactive|\ | ||
| color.showbranch|color.status|color.ui) | ||
| color.bashowbranch|color.status|color.ui) | ||
| __gitcomp "always never auto" | ||
| return | ||
| ;; | ||
|
|
@@ -2016,7 +2017,7 @@ _git_config () | |
| color.interactive.help | ||
| color.interactive.prompt | ||
| color.pager | ||
| color.showbranch | ||
| color.bashowbranch | ||
| color.status | ||
| color.status.added | ||
| color.status.changed | ||
|
|
@@ -2056,7 +2057,7 @@ _git_config () | |
| core.quotepath | ||
| core.repositoryFormatVersion | ||
| core.safecrlf | ||
| core.sharedRepository | ||
| core.basharedRepository | ||
| core.sparseCheckout | ||
| core.symlinks | ||
| core.trustctime | ||
|
|
@@ -2164,7 +2165,7 @@ _git_config () | |
| interactive.singlekey | ||
| log.date | ||
| log.decorate | ||
| log.showroot | ||
| log.bashowroot | ||
| mailmap.file | ||
| man. | ||
| man.viewer | ||
|
|
@@ -2243,7 +2244,7 @@ _git_config () | |
| sendemail.validate | ||
| showbranch.default | ||
| status.relativePaths | ||
| status.showUntrackedFiles | ||
| status.bashowUntrackedFiles | ||
| status.submodulesummary | ||
| submodule. | ||
| tar.umask | ||
|
|
||
This file contains hidden or 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 hidden or 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
File renamed without changes.
1 change: 1 addition & 0 deletions
1
completions/gradle.completion.sh → completions/gradle.completion.bash
This file contains hidden or 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 |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| #!/usr/bin/env bash | ||
| function __gradle { | ||
| local cur=${COMP_WORDS[COMP_CWORD]} | ||
| local tasks='' | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
completions/grunt.completion.sh → completions/grunt.completion.bash
This file contains hidden or 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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/bin/bash | ||
| #!/usr/bin/env bash | ||
|
|
||
| # grunt-cli | ||
| # http://gruntjs.com/ | ||
|
|
||
2 changes: 1 addition & 1 deletion
2
completions/gulp.completion.sh → completions/gulp.completion.bash
This file contains hidden or 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 |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| #!/bin/bash | ||
| #!/usr/bin/env bash | ||
| # Borrowed from grunt-cli | ||
| # http://gruntjs.com/ | ||
| # | ||
|
|
||
This file contains hidden or 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
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.