Commit Graph
100 Commits
Author SHA1 Message Date
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
Marc CornellàandGitHub b31106b341 git: minor syntax fix 2019-04-09 18:35:09 +02:00
Marc CornellàandGitHub 35dc26a2c0 git: use stash 'push' instead of the deprecated 'save' (#7486)
* Use stash 'push' or 'save' depending on Git version

A utility function now parses the output of git --version and set the
alias for git stash to 'git stash push' iff the current version of Git
is 2.13 or greater; it falls back to 'git stash save' otherwise.
2019-04-09 18:33:15 +02:00
Marc CornellàandGitHub 1bd72f588c Update to inline conditional syntax 2019-04-09 18:29:18 +02:00
Marc CornellàandGitHub 63291f4fcc Reword and fix formatting 2019-04-09 18:24:04 +02:00
Marc CornellàandGitHub a628b552c4 vi-mode: add CTRL+S to search history forward
Fixes #6999
2019-04-09 16:48:56 +02:00
Marc CornellàandGitHub d0efa0071c tmuxinator: fix completion file header 2019-04-09 15:37:24 +02:00
Marc Cornellà ab14068368 httpie: bundle zsh-completions completion (e5bd16f, 2016-12-18)
Source: https://github.com/zsh-users/zsh-completions/blob/master/src/_httpie

Related: #7308
2019-04-09 15:30:11 +02:00
Marc Cornellà 069df888b0 docker-compose: update completion (1f97a57, 2019-03-02)
Fixes #7480
2019-04-09 14:43:48 +02:00
Marc Cornellà 680755bbe6 iwhois: remove iwhois plugin
The whois.geek.nz resolver is now dead.

Fixes #7297
2019-04-09 12:03:28 +02:00
Marc CornellàandGitHub 7b06d01f8f gitfast: document deprecated git plugin dependency 2019-04-09 11:28:35 +02:00
Marc CornellàandGitHub f12f7b0341 swiftpm: update autocompletion for Swift 5.0 (#7744) 2019-04-08 23:22:41 +02:00
Marc CornellàandGitHub 2ec868dde4 swiftpm: improve README 2019-04-08 23:22:15 +02:00
Marc CornellàandGitHub 170575379e gulp: fix completion function name
Fixes #6620
2019-04-08 23:14:00 +02:00
Marc CornellàandGitHub 30594886bf lib: delete PS1 default
A default PS1 doesn't make sense: the user will either choose a theme or not
care about a default prompt since they can set it themselves.

Fixes #7054
2019-04-08 23:01:55 +02:00
Marc CornellàandGitHub 0c000af721 cloudapp: fix permissions of credentials file
Fixes #4151
2019-04-08 22:19:25 +02:00
Marc CornellàandGitHub 482587ccc1 vault: deprecate and update README
Fixes #6805
2019-04-08 20:39:21 +02:00
Marc CornellàandGitHub 8c95c2b6cb gitfast: update plugin (#7152)
* Stop loading git plugin
* Update completion and git-prompt to v2.10
* Update completion to v2.14
2019-04-08 20:06:17 +02:00
Marc CornellàandGitHub 9981479900 zshrc: remove SSH_KEY_PATH comment
Fixes #5741
2019-04-08 17:34:59 +02:00
Marc CornellàandGitHub c23ab00990 upgrade: fix lock-out on first upgrade check
This early return made it so the lock wasn't removed, therefore locking out
the upgrade script from ever entering the upgrade routine.

Fixes #6138 

Note: the logic needs some rework.
2019-04-07 20:39:25 +02:00
Marc CornellàandGitHub 831fba4ee4 Revert "git: delete branches in gbda only if there are any (#6079)" (#7724)
This reverts commit 0e0789fb7a.
2019-04-02 19:05:52 +02:00
Marc CornellàandGitHub 93cbc1614c git: use interactive mode in gclean
Fixes #7716
2019-03-31 15:56:35 +02:00
Marc Cornellà 7d27843e89 ubuntu: rename ag to age to avoid conflict with The Silver Searcher
Fixes #3866
2019-03-26 18:16:29 +01:00
Marc Cornellà 7fe353ccb6 ubuntu: clean up plugin and README 2019-03-26 18:16:28 +01:00
Marc CornellàandGitHub 8fba503667 cargo: update completion (#5757) 2019-03-25 22:43:19 +01:00
Marc CornellàandGitHub 61a7bc2d4a Update README 2019-03-25 22:42:38 +01:00
Marc CornellàandGitHub a441f64d09 Update _cargo completion to 0.34.0 version 2019-03-25 22:40:50 +01:00
Marc Cornellà 1e7033d660 Merge pull request #7166 from jounathaen/master 2019-03-25 19:51:25 +01:00
Marc CornellàandGitHub f6a9a0a498 git: fix grt on path with spaces
Fixes #7682
2019-03-25 18:46:18 +01:00
Marc Cornellà e59cc94805 themes: fix prompt verbosity on window resize
%_ is a prompt expansion sequence that expands to the status of the parser.
This means that on window resize, the status of the execution of the
window resize hook (TRAPWINCH) would be displayed while reloading the
prompt line. This looked like cmdand cursh$ or then$ depending on the
body of the TRAPWINCH function.

Fixes #7262
2019-03-25 17:05:50 +01:00
Marc CornellàandGitHub c56fa996e7 rake-fast: remove brackets from completion entries
Fixes #5653
2019-03-25 10:12:43 +01:00
Marc Cornellà 6d143d42ea aws: document aws_change_access_key and fix README 2019-03-24 19:54:56 +01:00
Marc Cornellà 5f893dcd20 aws: clean up aws_change_access_key function 2019-03-24 19:50:47 +01:00
Marc CornellàandGitHub 08b73f92c8 lighthouse: add README and clean up plugin (#7316) 2019-03-24 11:30:09 +01:00
Marc CornellàandGitHub e4189b9a96 Clean up lighthouse plugin 2019-03-24 11:29:35 +01:00
Marc CornellàandGitHub a055930cf8 Fix README 2019-03-24 11:27:25 +01:00
Marc CornellàandGitHub 1a2d930bca aws: refactor completion sourcing logic (#7364)
* Clean up Homebrew detection and add comments. Also changed some if flags.
* Detect aws cli completion file from RPM
2019-03-23 19:52:31 +01:00
Marc Cornellà 52afbf77f6 per-directory-history: update to latest version (0e090e8) 2019-03-03 20:32:59 +01:00
Marc Cornellà 55575b88f9 lib: optimize default and env_default 2019-02-25 23:20:47 +01:00