1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-17 19:30:10 +00:00
Commit graph

6674 commits

Author SHA1 Message Date
Marc Cornellà
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
Zach Whitten
2e54ba2dfb installer: restore previous default shell with uninstall
Co-authored-by: Antonio QUINTAVALLE <antonio.quintavalle@amadeus.com>
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
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
Marc Cornellà
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à
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
Marc Cornellà
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
Andrew Janke
43b3126b5c installer: use timestamped backups to preserve all old zshrcs 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
Andrew Janke
aa27430e10 installer: add ability to install from forked & branched repos
This facilitates testing of changes to the core installation code: you'll be
able to do a roundtrip test of install and uninstall using the working code on
your branch.

Controlled by passing $REPO and $BRANCH environment variables to install.sh.
2019-06-03 17:18:24 +02:00
Marc Cornellà
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
Fran
9d2b3ce79f installer: fix for Solus OS and systems with no /etc/shells
Co-authored-by: Fredrik Fornwall <fredrik@fornwall.net>
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
Raf Czlonka
8e10ac4d73 installer: make sure shell in /etc/shells is not commented
Otherwise we risk a situation where a full path to `zsh` is commented, i.e.:

    #/usr/local/bin/zsh
2019-06-03 17:18:23 +02:00
Luca S
73f29087f9 installer: replace the current shell with the new ZSH instance
This replaces the currently running process with the new one using `exec`
instead of creating a new process. This way, when the user `exit`s out of
the new shell it will not pop them back into the shell from which ohmyzsh
was installed from.
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
Michael Morgan
27228d83fe fasd: update v alias to evaluate $EDITOR lazily (#7900)
For the `v` alias to work in its current state, the environment variable
EDITOR must already be defined by the time `source $ZSH/oh-my-zsh.sh`
happens. However, in the included zshrc template, EDITOR is set from
within the "User configuration" section, which begins immediately after
the above line. This means that, unless the user knows to move their
`export EDITOR` statements, EDITOR will be undefined when fasd.plugin.zsh
loads, and therefore the alias will have the value 'f -e ""', preventing
it from functioning.

With this change, `"$EDITOR"` will be evaluated each time the alias is
invoked, instead of just once when the alias is created. This allows for
EDITOR to be set from "User configuration" in the zshrc, and has the
additional flexibility of allowing a user to specify a different EDITOR
for a single session or invocation of the alias.
2019-06-01 20:40:04 +02:00
Marc Cornellà
9930dd6e49 aws: use function keyword in function definitions
Fixes #7886
2019-05-28 15:33:02 +02:00
Pete Johns
7f66a070a4 osx: add more arguments to itunes vol command (#7845)
- Get the iTunes volume without an argument
- Shift up / down iTunes volume
2019-05-27 18:22:07 +02:00
programmer04
1343ab67ed aws: check availability of aws profiles (#7839) 2019-05-26 12:31:37 +02:00
Rachel M. Carmena
5d875d6812 ng: fix shwordsplit option use (#7880) 2019-05-25 19:35:33 +02:00
Marc Cornellà
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
Will Mendes
8d4d766bac frontend: add frontend search commands (#7863) 2019-05-25 11:59:47 +02:00
Marc Cornellà
9598a855fa
aws: check for existence of config file in aws_profiles
Fixes #7872
2019-05-25 10:24:43 +02:00
Aliaksei Maiseyeu
fa187791ca torrent: add README (#7873) 2019-05-24 12:17:26 +02:00
Miral
60736c9f37 Add new kubectl alias to list all contexts (#7823)
* Add alias to list all contexts

* Update readme to include new alias
2019-05-21 15:13:05 -07: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
Melebius
8022fdbd13 svn-fast-info: fix svn-fast-info printfs (#7140)
The svn-fast-info plugin printf commands was not well formatted, now it can handle empty
variables. Also removed redundant spaces.

Co-authored-by: RazManor <Raz.Manor@valens.com>
Co-authored-by: Marc Cornellà <marc.cornella@live.com>
2019-05-20 22:31:48 +02:00
Arshad Kazmi
f960e2be6f dotenv: add support for custom env file names (#7861) 2019-05-19 22:45:27 +02:00
Marc Cornellà
5f7666e20b
vi-mode: reset KEYMAP on accept-line (#7818)
Fixes #7797
2019-05-19 18:22:23 +02:00
Mert Simsek
5aa62461d9 rails: change rg alias to rgen (#7858)
The rg alias conflicted with ripgrep.
2019-05-17 14:36:20 +02:00
Marc Cornellà
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à
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
Mohamed El Mouctar Haidara
4585c6662b aws: really unset AWS*PROFILE variables in asp function (#7838) 2019-05-10 17:28:31 +02:00
DT
f5f630ff34 osx: update spotify to v2.1 (#7820) 2019-05-09 14:17:22 +02:00
Marc Cornellà
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à
0232ac4bb1
Merge branch 'master' into master 2019-05-08 20:40:36 +02:00
chpeer
ebc700be9b Add plugin for Please (#6568) 2019-05-08 16:53:50 +02:00