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à and GitHub
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à and GitHub
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à and GitHub
5f7666e20b
vi-mode: reset KEYMAP on accept-line ( #7818 )
...
Fixes #7797
2019-05-19 18:22:23 +02:00
Marc Cornellà and GitHub
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à and Daniel 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à and GitHub
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à and GitHub
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à and GitHub
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à and GitHub
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à and GitHub
63b8d652f2
Add small polishing touches
2019-05-06 19:09:51 +02:00
Marc Cornellà and GitHub
d4a3e0645b
zshrc: add option to bypass update prompt ( #5891 )
2019-05-05 21:23:32 +02:00
Marc Cornellà and GitHub
8113ed065d
Add GitHub Action to label Pull Requests
2019-05-03 16:31:22 +02:00
Marc Cornellà and GitHub
4eae0549fd
per-directory-history: redo README for Oh My Zsh
...
Closes #7726
2019-04-29 21:08:26 +02:00
Marc Cornellà and GitHub
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à and GitHub
f5b2d9c7ce
meta: ignore example files in custom directory
...
Fixes #7801
2019-04-26 16:59:46 +02:00
Marc Cornellà and GitHub
f46476589a
core: set up colored ls output in FreeBSD ( #7787 )
...
Fixes #7565
2019-04-22 21:09:54 +02:00
Marc Cornellà and GitHub
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à and GitHub
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à and GitHub
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à and GitHub
4456536a78
Simplify explanation of bwana function
2019-04-15 16:46:58 +02:00
Marc Cornellà and GitHub
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à and GitHub
7824dc637d
git: use is-at-least to test for git version
...
Fixes #7754
2019-04-10 11:47:29 +02:00
Marc Cornellà and GitHub
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à and GitHub
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à and GitHub
cab1ac6e68
emacs: use open frame if there is one present
...
Fixes #5779
Fixes #5405
2019-04-09 19:01:10 +02:00
Marc Cornellà and GitHub
b31106b341
git: minor syntax fix
2019-04-09 18:35:09 +02:00
Marc Cornellà and GitHub
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à and GitHub
1bd72f588c
Update to inline conditional syntax
2019-04-09 18:29:18 +02:00
Marc Cornellà and GitHub
63291f4fcc
Reword and fix formatting
2019-04-09 18:24:04 +02:00
Marc Cornellà and GitHub
a628b552c4
vi-mode: add CTRL+S to search history forward
...
Fixes #6999
2019-04-09 16:48:56 +02:00
Marc Cornellà and GitHub
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à and GitHub
7b06d01f8f
gitfast: document deprecated git plugin dependency
2019-04-09 11:28:35 +02:00
Marc Cornellà and GitHub
f12f7b0341
swiftpm: update autocompletion for Swift 5.0 ( #7744 )
2019-04-08 23:22:41 +02:00
Marc Cornellà and GitHub
2ec868dde4
swiftpm: improve README
2019-04-08 23:22:15 +02:00
Marc Cornellà and GitHub
170575379e
gulp: fix completion function name
...
Fixes #6620
2019-04-08 23:14:00 +02:00
Marc Cornellà and GitHub
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à and GitHub
0c000af721
cloudapp: fix permissions of credentials file
...
Fixes #4151
2019-04-08 22:19:25 +02:00
Marc Cornellà and GitHub
482587ccc1
vault: deprecate and update README
...
Fixes #6805
2019-04-08 20:39:21 +02:00
Marc Cornellà and GitHub
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à and GitHub
9981479900
zshrc: remove SSH_KEY_PATH comment
...
Fixes #5741
2019-04-08 17:34:59 +02:00
Marc Cornellà and GitHub
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à and GitHub
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à and GitHub
93cbc1614c
git: use interactive mode in gclean
...
Fixes #7716
2019-03-31 15:56:35 +02:00
Marc Cornellà and GitHub
8fba503667
cargo: update completion ( #5757 )
2019-03-25 22:43:19 +01:00
Marc Cornellà and GitHub
61a7bc2d4a
Update README
2019-03-25 22:42:38 +01:00
Marc Cornellà and GitHub
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à and GitHub
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à and GitHub
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à and GitHub
08b73f92c8
lighthouse: add README and clean up plugin ( #7316 )
2019-03-24 11:30:09 +01:00
Marc Cornellà and GitHub
e4189b9a96
Clean up lighthouse plugin
2019-03-24 11:29:35 +01:00
Marc Cornellà and GitHub
a055930cf8
Fix README
2019-03-24 11:27:25 +01:00
Marc Cornellà and GitHub
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
Marc Cornellà
4cdffcd485
init: cut down on the number of compaudit calls
2019-02-25 21:30:00 +01:00
Marc Cornellà and GitHub
f99b58a37c
fancy-ctrl-z: fix "hurt sme" typo ( #7613 )
2019-02-25 17:29:02 +01:00
Marc Cornellà and GitHub
8837782b5d
fixed aplay conflict ( #7617 )
2019-02-25 14:40:07 +01:00
Marc Cornellà and GitHub
424b24761b
Merge pull request #7599 from mcornella/plugin/mvn-refactor
...
mvn: unify changes, refactor and cleanup
2019-02-17 21:09:49 +01:00
Marc Cornellà
0e647904ff
mvn: update documentation
2019-02-17 20:57:56 +01:00
Marc Cornellà
f4b2e460c7
mvn: fix and cleanup dynamic profiles logic
2019-02-17 20:57:56 +01:00
Marc Cornellà
d0a0421e10
mvn: sort aliases and improve comments and README
2019-02-17 20:35:31 +01:00
Marc Cornellà
006b882098
mvn: clean up mvn-color function
2019-02-17 20:35:30 +01:00
Marc Cornellà
c636e0933a
mvn: avoid mvn-or-mvnw function calling itself when mvn is aliased to it
2019-02-17 20:35:30 +01:00
Marc Cornellà
b767976586
mvn: use echoti instead of tput
...
Avoids forking to tput and some systems don't have tput
2019-02-17 20:35:30 +01:00
Marc Cornellà
5b569149f3
mvn: fix formatting
2019-02-17 20:35:30 +01:00
Marc Cornellà
052493b1ba
z: refresh $RANDOM's value outside subshell
...
This change references `$RANDOM` outside the subshell to refresh it for the
next subshell invocation. Otherwise, subsequent runs of the function get the
same value and, if run simultaneously, they may clobber each others' temp .z
files.
This is due to how zsh distributes RANDOM values when running inside a
subshell:
subshells that reference RANDOM will result in identical pseudo-random
values unless the value of RANDOM is referenced or seeded in the parent
shell in between subshell invocations
See: http://zsh.sourceforge.net/Doc/Release/Parameters.html#index-RANDOM
2019-02-06 11:57:28 +01:00
Marc Cornellà and GitHub
83ce8d05df
transfer: add newline after showing the link
...
Fixes #7562
2019-01-30 16:35:16 +01:00
Marc Cornellà and GitHub
c494869632
ssh-agent: check for loaded id filenames first ( #7521 )
...
This change makes the plugin check if an identity is loaded by looking
first at the key filename reported by `ssh-add -l`. This fixes the use
case where ssh-keygen is not able to output the fingerprint of a key,
such as the one reported on #7516 .
Now, for an identity to be passed onto ssh-add, it has to fail the
match for a loaded identity, both filename and signature.
2019-01-21 20:31:30 +01:00
Marc Cornellà and GitHub
6db298c57a
misc: remove please alias to sudo
...
Fixes #7527
2019-01-20 17:20:26 +01:00
Marc Cornellà and GitHub
9d1dd24e35
ssh-agent: add default keys if no zstyle identities were set ( #7520 )
2019-01-19 18:00:04 +01:00
Marc Cornellà and GitHub
fabee55948
ssh-agent: autoload identities not already loaded ( #7174 )
...
With this PR the ssh-agent plugin checks the `ssh-add -l` output for the
identities added, and adds all those specified by the user that haven't been
added yet.
We also decouple the logic of starting ssh-agent from the logic of adding
identities, meaning that even if ssh-agent has been started by some other means
(like launchd) we can still ssh-add the user's identities.
Fixes #3019
Fixes #6979
2019-01-09 21:19:52 +01:00
Marc Cornellà and GitHub
e780209c33
tmux: use $terminfo to avoid echoti errors
...
See https://github.com/robbyrussell/oh-my-zsh/issues/7407#issuecomment-441665143
2018-11-26 19:57:52 +01:00
Marc Cornellà
ad69c7a82f
fabric: rename completion back to _fab
...
Fixes #7405
2018-11-16 18:55:07 +00:00
Marc Cornellà and GitHub
b1424e2893
tmux: use echoti instead of tput for FreeBSD compatibility
...
Fixes #7407
FreeBSD's tput needs termcap codes instead of terminfo capnames, so using `tput colors`
has the wrong effect. See #7407
2018-11-16 19:40:06 +01:00