Commit Graph
100 Commits
Author SHA1 Message Date
Marc CornellàandGitHub 7ea05bd500 Change description 2019-10-09 18:07:02 +02:00
Marc CornellàandGitHub 13d889470e ufw: add README (#8227) 2019-10-07 18:08:35 +02:00
Marc CornellàandGitHub a3b63aa6ab Reword 2019-10-07 18:08:14 +02:00
Marc CornellàandGitHub e2d5426f42 perl: add README (#8215) 2019-10-07 17:41:09 +02:00
Marc CornellàandGitHub 896dd271c8 Some syntax changes and more function docs 2019-10-07 17:40:51 +02:00
Marc CornellàandGitHub d8a7884731 redis-cli: add README (#8214) 2019-10-07 17:26:05 +02:00
Marc CornellàandGitHub a9d382a297 Small changes 2019-10-07 17:25:44 +02:00
Marc CornellàandGitHub b45e0f4836 dash: simplify completion logic 2019-10-07 17:08:38 +02:00
Marc CornellàandGitHub e0bc646993 dash: add README (#8221) 2019-10-07 17:04:55 +02:00
Marc CornellàandGitHub 357336bfb3 Remove redundant section and document keyword args 2019-10-07 17:04:31 +02:00
Marc CornellàandGitHub d9bb732eac rvm: add README (#8199) 2019-10-03 13:52:01 +02:00
Marc CornellàandGitHub 1a6480e486 bundler: add rubocop to bundled_commands (#8169) 2019-10-02 18:55:47 +02:00
Marc Cornellà e38099de96 sublime: ignore wslpath errors if C drive is missing 2019-10-02 13:10:36 +02:00
Marc CornellàandGitHub bf0cf4eb1e yarn: add Yarn Workspace aliases (#7491) 2019-10-01 22:24:48 +02:00
Marc CornellàandGitHub a6d71ddadb Update README with up-to-date platform requirements
Co-authored-by: Emil Engler <me@emilengler.com>
Closes #8157
2019-10-01 21:11:18 +02:00
Marc CornellàandGitHub bb6ae70b92 fzf: add support for debian packages (#8001) 2019-10-01 13:34:13 +02:00
Marc CornellàandGitHub 86dd1a480a react-native: add aliases for newer iPhones (#8170)
Added aliases for iPhone 11, 11 Pro, and 11 Pro Max
2019-09-30 19:49:59 +02:00
Marc CornellàandGitHub 487f0af412 Fix table alignment 2019-09-30 19:49:09 +02:00
Marc Cornellà 095d56b5ea Fix WSL check for WSL 2 and simplify nohup in open_command
WSL 2 changes the output of `uname -r`. For instance,

  WSL 1: 4.4.0-18980-Microsoft
  WSL 2: 4.19.67-microsoft-standard

Since WSL 2 lowercases the M, we can match for the rest of the string
which remains lowercase throughout both versions. Another option would
be to match for both upper- and lower-case Ms, like that:

  $(uname -r) = *[Mm]icrosoft*

Fixed use of nohup in open_command where it was only necessary for
xdg-open (and actually harmful for cmd.exe in WSL 2). The current logic
is simpler and more future-proof.
2019-09-19 16:20:02 +02:00
Marc CornellàandGHPS 576e0992ca z: update to latest version (e77e938)
Closes #8145

Co-authored-by: GHPS <GHPS@users.noreply.github.com>
2019-09-13 11:44:20 +02:00
Marc CornellàandGitHub 093b56a7d7 git: fix gtl alias argument
Fixes the error `no matches found` because the argument is not quoted.
See https://github.com/robbyrussell/oh-my-zsh/pull/7629#issuecomment-531151821
2019-09-13 11:20:20 +02:00
Marc Cornellà fd4571d1b0 installer: allow chsh to work in termux 2019-09-08 21:35:45 +02:00
Marc CornellàandGitHub f9e133b88a gitfast: fix error in git-prompt.sh (#8132)
An error was thrown (`bash: [: =: unary operator expected`) when using the __git_ps1_colorize_gitstring function outside of the one place it's called (line 512), because the "detached" variable was not quoted, and was unset.
2019-09-08 20:29:43 +02:00
Marc CornellàandGitHub 4fb50b3333 Unquote yes in conditional expressions for style consistency 2019-09-08 20:28:59 +02:00
Marc Cornellà 101ea87232 ssh-agent: check if ssh-add -l was successful 2019-09-08 16:07:06 +02:00
Marc CornellàandGitHub 2b4d72322b debian: fix bad function definitions (#8129)
* Fix bad function definitions in Debian plugin

There appears to be a definition issue for some functions/aliases which
result in the following errors when sourcing .zshrc:

```
/home/username/.oh-my-zsh/plugins/debian/debian.plugin.zsh:75: defining function based on alias `abd'
/home/username/.oh-my-zsh/plugins/debian/debian.plugin.zsh:75: parse error near `()'
```

Fixes #7986

* Update syntax on the remaining functions
2019-09-08 14:59:50 +02:00
Marc CornellàandGitHub a870fee6a7 Update syntax on the remaining functions 2019-09-08 14:58:46 +02:00
Marc Cornellà a4f6a9964c meta: remove PR triage GitHub action 😢
We do this because the GitHub Actions behavior was changed recently
so as to not pass secrets to action runs started from forks, therefore
the API token passed cannot be used to change PR labels.

There may be an alternative in the future.
2019-09-03 21:19:38 +02:00
Marc CornellàandGitHub d6fc6edb29 git: fix gbda trying to delete worktree branches (#8102)
Git learned to add a `+` in front of branches that are
checked out in other worktrees.

See: https://github.com/git/git/blob/745f6812895b31c02b29bdfe4ae8e5498f776c26/Documentation/RelNotes/2.23.0.txt#L252-L256
2019-08-23 17:16:04 +02:00
Marc CornellàandGitHub 3e0e9136cc homestead: change key string for getting command list (#8008) 2019-08-23 13:37:28 +02:00
Marc CornellàandGitHub e604eaf55e lib: delete LC_CTYPE locale setting which causes problems
Fixes #7942
2019-08-19 18:17:17 +02:00
Marc CornellàandGitHub c4c620adcd meta: add DEBUG_ACTIONS flag to PR triage action 2019-08-18 15:13:46 +02:00
Marc CornellàandGitHub 28232904be git-auto-fetch: override zle-line-init only if it exists 2019-08-13 18:19:07 +02:00
Marc CornellàandGitHub 4974143745 meta: move if condition on workflow to steps
Provisional measure due to "Unexpected value 'if'" error. See https://github.community/t5/GitHub-API-Development-and/jobs-lt-job-id-gt-if-not-working/m-p/28980
2019-08-13 15:10:15 +02:00
Marc Cornellà d8ad4e902c meta: convert workflow file to GitHub Actions v2 yml syntax 2019-08-13 14:15:14 +02:00
Marc CornellàandGitHub 2156b4c081 colored-man-pages: add option to color any help command (#7173)
This allows you to use `colored git log --help` for example, to get
colored output.
2019-08-07 20:10:54 +02:00
Marc CornellàandGitHub 89366be43f Revert "agnoster: fix VIRTUAL_ENV_DISABLE_PROMPT logic (#8050)" (#8061)
This reverts commit 59c1ec80aa.
2019-08-06 18:01:32 +02:00
Marc CornellàandGitHub 17f4cfca99 af-magic: make separator window-size-aware (#7739) 2019-07-13 12:48:10 +02:00
Marc CornellàandGitHub fb43df128f colorize: add style environment variable (#7635) 2019-06-15 20:48:45 +02:00
Marc CornellàandGitHub 69f37800be ubuntu: plugin cleanup and rename of ag alias to age (#7700)
* Clean up plugin and README
* Rename ag to age to avoid conflict with The Silver Searcher
  Fixes #3866
2019-06-11 15:05:55 +02:00
7f98e1cb52 debian: fix alias completion, rename ag and clean up README (#7698)
* Use double quotes to cache value of $apt_pref and $apt_upgr
* Clean up and fix syntax of command checks
* Clean up README and document $apt_pref/$apt_upgr overriding mechanism
* Rename `ag` alias (apt upgrade) to `au`
* Clean up README and fix syntax

Fixes #3686 
Fixes #4660 
Closes #5906

Co-authored-by: Noah Vesely <fowlslegs@riseup.net>
2019-06-11 15:02:04 +02:00
Marc CornellàandGitHub 24cd8e8314 meta: change feature request label 2019-06-10 15:50:25 +02:00
Marc Cornellà 702a594df3 installer: don't rely on tput for coloring
tput is error-prone and may not be needed, since all the formatting
codes used are standard across all types of terminals.
2019-06-09 16:33:06 +02:00
Marc CornellàandGitHub 52fdae4b3d Merge pull request #5169 from mcornella/refactor-installer
installer: fix, refactor and add installer arguments
2019-06-03 17:19:37 +02:00
Marc Cornellà c8ac4038cf installer: add documentation of new installer features to README 2019-06-03 17:18:26 +02:00
Marc Cornellà b944fee6ea installer: ask user about changing the shell to zsh 2019-06-03 17:18:25 +02:00
Marc Cornellà 0824dcc9fb installer: allow for tput errors
tput may throw errors on invalid $TERM values, for example.
This shorthand syntax allows for that as well as for if tput
doesn't exist.
2019-06-03 17:18:25 +02:00
Marc Cornellà 66d6d08841 installer: improve message formatting and color 2019-06-03 17:18:25 +02:00
Marc Cornellà b931d6a9db installer: change to --unattended argument and add docs 2019-06-03 17:18:25 +02:00
Marc Cornellà 065844fdc0 installer: comment changes 2019-06-03 17:18:25 +02:00
1cf42a506f installer: add option to not run zsh at the end
Co-authored-by: Liquidsoul <liquidsoul@liquidsoul.fr>
Co-authored-by: Alexander Polynomdivision <digitalmail555@googlemail.com>
Co-authored-by: loket <loket@cruftlab.io>
Co-authored-by: Connor Demille <subtlepseudonym@gmail.com>
2019-06-03 17:18:25 +02:00
Marc CornellàandJoel Kuzmarski a40d93295f installer: don't run zsh at the end
Co-authored-by: Joel Kuzmarski <leoj3n@gmail.com>
2019-06-03 17:18:24 +02:00
794ff4a62d installer: add ability to skip the default shell change
Co-authored-by: Marshall Ford <inbox@marshallford.me>
Co-authored-by: Joel Kuzmarski <leoj3n@gmail.com>
2019-06-03 17:18:24 +02:00
Marc Cornellà 153f5e11ed installer: use default color sequences on missing tput
Supposed to be POSIX-compatible. Proved to work in dash, yash and whatever
alpine uses. See https://unix.stackexchange.com/a/371873
2019-06-03 17:18:24 +02:00
Marc Cornellà 220d69b2ce installer: allow configuration of remote URL to clone from 2019-06-03 17:18:24 +02:00
Marc CornellàandJoel Kuzmarski a6a093ba2a installer: improve zsh binary path search in setup_shell
This changes the behavior to default to the binary found first in $PATH,
then checking it's actually in the shells file (/etc/shells).

If that fails go back to the previous behavior, but actually check that
the path obtained exists in the filesystem.

Co-authored-by: Joel Kuzmarski <leoj3n@gmail.com>
2019-06-03 17:18:24 +02:00
Marc Cornellà 62216aaa8f installer: use guard clauses in setup_shell for better readability
Guard clauses are if constructs that return early if there is an error
that prevents continuing. This way there isn't a big nesting of if
expressions.
2019-06-03 17:18:23 +02:00
Marc Cornellà 1fdd5351fb installer: abstract error messages 2019-06-03 17:18:23 +02:00
Marc Cornellà 576499a5ad installer: fix for failed chsh quitting the installation 2019-06-03 17:18:23 +02:00
Marc Cornellà a7bd1f99ae installer: extract most code into functions 2019-06-03 17:18:23 +02:00
Marc Cornellà f94443925d installer: reorganise and add comments 2019-06-03 17:18:23 +02:00
Marc Cornellà 73ef051aae installer: use tabs to allow future heredocs
This will allow us to use tab stripping heredocs with `<<-'.
See http://www.tldp.org/LDP/abs/html/here-docs.html#EX71A

Add editorconfig file to enforce this style.
See http://editorconfig.org for more information.
2019-06-03 17:18:22 +02:00
Marc Cornellà 9a832cccef installer: use exit-on-error from the beginning 2019-06-03 17:18:22 +02:00
Marc Cornellà 9930dd6e49 aws: use function keyword in function definitions
Fixes #7886
2019-05-28 15:33:02 +02:00
Marc CornellàandGitHub 1f07889888 emotty: fix for undefined $TTY (FreeBSD) (#7844)
See https://github.com/robbyrussell/oh-my-zsh/pull/6731#issuecomment-449653115
2019-05-25 12:19:51 +02:00
Marc CornellàandGitHub 9598a855fa aws: check for existence of config file in aws_profiles
Fixes #7872
2019-05-25 10:24:43 +02:00
Marc Cornellà f62a71e9de meta: update issue templates 2019-05-21 11:53:52 +02:00
Marc Cornellà 4ad4a81657 git: clean up plugin file and delete current_repository function
Closes #6329
2019-05-21 11:04:01 +02:00
Marc Cornellà f8d5fdce3a git: move documentation from wiki to README 2019-05-21 11:04:01 +02:00
Marc CornellàandGitHub 5f7666e20b vi-mode: reset KEYMAP on accept-line (#7818)
Fixes #7797
2019-05-19 18:22:23 +02:00
Marc CornellàandGitHub dfb060f8cf meta: add initial issue templates
This commit adds the following issue categories:
- Bug report
- Feature request
- Support
2019-05-16 21:54:54 +02:00
Marc CornellàandDaniel Galán y Martins 486fa1010d lib: add ability to disable magic functions
Fixes #5499
Fixes #5569
Fixes #6338
Fixes #6654
Fixes #6255
Fixes #7632

Closes #7763

Co-authored-by: Daniel Galán y Martins <git@galan.de>
2019-05-11 13:47:12 +02:00
Marc CornellàandGitHub 10c1b7d2ca jira: add a myissues option (#6696)
This will allow the user to directly open the "my open issues" page. This
will make it easier for the user to open their open issues in jira.
2019-05-08 20:42:12 +02:00
Marc CornellàandGitHub 0232ac4bb1 Merge branch 'master' into master 2019-05-08 20:40:36 +02:00
Marc Cornellà 76c7bd57c3 Merge branch 'apjanke/themes-rvm-prompt-function' (#4588)
Fixes #4272
Fixes #4182
Closes #4197

Closes #4588
2019-05-08 08:50:31 +02:00
Marc Cornellà ea3e666e04 init: run compinit before loading lib/ files 2019-05-07 21:30:06 +02:00
Marc CornellàandGitHub 239649ae6a lib: pass arguments to d to dirs (#6924)
Replace the alias with a function. Call `dirs` if arguments are given to `d`.
2019-05-07 20:53:40 +02:00
Marc CornellàandGitHub 6da59ff046 frontend-search: add Angular 2 context (#7830)
* Add search URL for angular 2
* Convert + to %20 encoding
2019-05-06 19:36:44 +02:00
Marc CornellàandGitHub 63b8d652f2 Add small polishing touches 2019-05-06 19:09:51 +02:00
Marc CornellàandGitHub d4a3e0645b zshrc: add option to bypass update prompt (#5891) 2019-05-05 21:23:32 +02:00
Marc CornellàandGitHub 8113ed065d Add GitHub Action to label Pull Requests 2019-05-03 16:31:22 +02:00
Marc CornellàandGitHub 4eae0549fd per-directory-history: redo README for Oh My Zsh
Closes #7726
2019-04-29 21:08:26 +02:00
Marc CornellàandGitHub 6da85279eb Revert "kubectl: rename k alias" (#7817)
This reverts commit 978b724c4a (#7749)

See https://github.com/robbyrussell/oh-my-zsh/issues/6408#issuecomment-485718042 and later comments.
2019-04-29 15:48:24 +02:00
Marc CornellàandGitHub f5b2d9c7ce meta: ignore example files in custom directory
Fixes #7801
2019-04-26 16:59:46 +02:00
Marc CornellàandGitHub f46476589a core: set up colored ls output in FreeBSD (#7787)
Fixes #7565
2019-04-22 21:09:54 +02:00
Marc CornellàandGitHub 978b724c4a kubectl: rename k alias (#7749)
This uses `ku` instead of `k` as an alias for kubectl.

Fixes #6408
2019-04-17 17:23:54 +02:00
Marc CornellàandGitHub fc9e427ef9 sublime: refactor plugin and fix documentation (#7715)
* convert to 2-space indentation
* standardize sublime function name (subl)
* simplify subl function definition into a single loop
* convert functions into aliases
* simplify alias creation
* search for Sublime Text command only if not found
* reorganize and clean up plugin
* fix README
* simplify cygwin path lookup
* support path lookup for msys (Windows)
* support path lookup for WSL (Windows)
* fix for spaces in sublime path alias
2019-04-15 16:55:18 +02:00
Marc CornellàandGitHub 4b9c4e973e bwana: change function name to bwana (#7769)
Change name function from `man` to `bwana`.
2019-04-15 16:47:43 +02:00
Marc CornellàandGitHub 4456536a78 Simplify explanation of bwana function 2019-04-15 16:46:58 +02:00
Marc CornellàandGitHub b57c0ac6e2 Delete deprecated pure theme 2019-04-10 21:26:56 +02:00
Marc Cornellà 3c8f73c312 git-prompt: fix LANG override for git status call
The previous version modified the whole environment leading to
problems (see #7757). This version *adds* LANG=C to the current
env, without overriding it completely.

Fixes #7757.
2019-04-10 20:30:30 +02:00
Marc CornellàandGitHub 7824dc637d git: use is-at-least to test for git version
Fixes #7754
2019-04-10 11:47:29 +02:00
Marc CornellàandGitHub 0c3499ecd9 Fix showing aws prompt out of the box for 'fishy' theme (#7747)
This fixes the RPROMPT setting for fishy theme so as to preserve its old value,
instead of overwriting it like it did before.

Also, fix unnecessary export of RPROMPT in aws plugin.
2019-04-09 22:20:00 +02:00
Marc CornellàandGitHub 5911aea46c lib: stop detecting git versions prior to 1.7.2
The 1.7.2 release was published in July 2010 [1]. It's about time to stop
supporting older versions.

Fixes #4583

[1] https://github.com/git/git/releases/tag/v1.7.2
2019-04-09 20:38:13 +02:00
Marc Cornellà bb64446ebf Merge branch 'fix/autojump-plugin'
Fixes #7568
Closes #4542
Closes #5163
Closes #6868
2019-04-09 19:47:11 +02:00
Marc Cornellà b4c06f2b50 Complain when no autojump script was found 2019-04-09 19:45:49 +02:00
Marc Cornellà fd105b6e52 Refactor and clean up autojump plugin 2019-04-09 19:45:30 +02:00
Marc Cornellà 5a424fc12f Check first default Homebrew prefix 2019-04-09 19:22:51 +02:00
Marc Cornellà 4ef29c9f18 Fix homebrew path location 2019-04-09 19:21:05 +02:00
Marc CornellàandGitHub cab1ac6e68 emacs: use open frame if there is one present
Fixes #5779
Fixes #5405
2019-04-09 19:01:10 +02:00