Skip to content

Commit

Permalink
Rename spaceship-zsh-theme -> spaceship-prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
denysdovhan committed Jan 17, 2018
1 parent a65a2f0 commit ef280c0
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 33 deletions.
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div align="center">
<a href="https://github.com/denysdovhan/spaceship-zsh-theme">
<a href="https://github.com/denysdovhan/spaceship-prompt">
<img alt="spaceship →~ prompt" src="https://cloud.githubusercontent.com/assets/3459374/21679181/46e24706-d34b-11e6-82ee-5efb3d2ba70f.png" width="400">
</a>
</div>
Expand Down Expand Up @@ -65,15 +65,15 @@ Currently it shows:
* Optional time stamps 12/24hr in format ([how to enable](./docs/Options.md#time-time)).
* Execution time of the last command if it exceeds the set threshold.

Want more features? Please, [open an issue](https://github.com/denysdovhan/spaceship-zsh-theme/issues/new) or send pull request.
Want more features? Please, [open an issue](https://github.com/denysdovhan/spaceship-prompt/issues/new) or send pull request.

## Preview

<p align="center">
<img alt="Spaceship with Hyper and One Dark" src="./preview.gif" width="980px">
</p>

You can find more examples with different color schemes in [Screenshots](https://github.com/denysdovhan/spaceship-zsh-theme/wiki/Screenshots) wiki-page.
You can find more examples with different color schemes in [Screenshots](https://github.com/denysdovhan/spaceship-prompt/wiki/Screenshots) wiki-page.

## Requirements

Expand All @@ -87,7 +87,7 @@ For correct work you will first need:
### [npm]

```
npm install -g spaceship-zsh-theme
npm install -g spaceship-prompt
```

Done. This command should link `spaceship.zsh` as `prompt_spaceship_setup` to your `$fpath` and set `prompt spaceship` in `.zshrc`. Just reload your terminal.
Expand All @@ -97,49 +97,49 @@ Done. This command should link `spaceship.zsh` as `prompt_spaceship_setup` to yo
### [oh-my-zsh]

* Set `ZSH_THEME=""` in your `.zshrc`
* Follow instructions in [manual](https://github.com/denysdovhan/spaceship-zsh-theme#manual) installation.
* Follow instructions in [manual](https://github.com/denysdovhan/spaceship-prompt#manual) installation.

### [prezto]

`prezto` follows vanilla Zsh prompt setup. Just use [npm](#npm) or follow instructions in [manual](https://github.com/denysdovhan/spaceship-zsh-theme#manual) installation.
`prezto` follows vanilla Zsh prompt setup. Just use [npm](#npm) or follow instructions in [manual](https://github.com/denysdovhan/spaceship-prompt#manual) installation.

### [antigen]

Add the following snippet in your `~/.zshrc``:

```
antigen theme https://github.com/denysdovhan/spaceship-zsh-theme spaceship
antigen theme https://github.com/denysdovhan/spaceship-prompt spaceship
```

### [antibody]

Update your `.zshrc` file with the following line:

```
antibody bundle denysdovhan/spaceship-zsh-theme
antibody bundle denysdovhan/spaceship-prompt
```

### [zgen]

Add the following line to your `~/.zshrc` where you're adding your other Zsh plugins:

```
zgen load denysdovhan/spaceship-zsh-theme spaceship
zgen load denysdovhan/spaceship-prompt spaceship
```

### [zplug]

Use this command in your `.zshrc` to load Spaceship as prompt theme:

```
zplug denysdovhan/spaceship-zsh-theme, use:spaceship.zsh, from:github, as:theme
zplug denysdovhan/spaceship-prompt, use:spaceship.zsh, from:github, as:theme
```

### Manual

If you have problems with approches above, follow these instructions:

* Clone this repo `git clone https://github.com/denysdovhan/spaceship-zsh-theme.git`
* Clone this repo `git clone https://github.com/denysdovhan/spaceship-prompt.git`
* Symlink `spaceship.zsh` to somewhere in [`$fpath`](http://www.refining-linux.org/archives/46/ZSH-Gem-12-Autoloading-functions/) as `prompt_spaceship_setup`.
* Initialize prompt system and choose `spaceship`.

Expand Down Expand Up @@ -180,13 +180,13 @@ Spaceship works well out of the box, but you can customize almost everything if

You have ability to customize or disable specific elements of Spaceship. All options must be overridden in your `.zshrc` file **after** the theme.

Also, take a look at popular option presets or share your own configuration on [Presets](https://github.com/denysdovhan/spaceship-zsh-theme/wiki/Presets) wiki page.
Also, take a look at popular option presets or share your own configuration on [Presets](https://github.com/denysdovhan/spaceship-prompt/wiki/Presets) wiki page.

## Troubleshooting

Have a trouble? Take a look at out [Troubleshooting](./docs/Troubleshooting.md) page.

Still struggling? Please, [file an issue](https://github.com/denysdovhan/spaceship-zsh-theme/issues/new), describe your problem and we will gladly help you.
Still struggling? Please, [file an issue](https://github.com/denysdovhan/spaceship-prompt/issues/new), describe your problem and we will gladly help you.

## Donate

Expand All @@ -205,13 +205,13 @@ MIT © [Denys Dovhan](http://denysdovhan.com)

<!-- Badges -->

[npm-url]: https://npmjs.org/package/spaceship-zsh-theme
[npm-image]: https://img.shields.io/npm/v/spaceship-zsh-theme.svg?style=flat-square
[npm-url]: https://npmjs.org/package/spaceship-prompt
[npm-image]: https://img.shields.io/npm/v/spaceship-prompt.svg?style=flat-square

[zsh-url]: http://zsh.org/
[zsh-image]: https://img.shields.io/badge/zsh-%3E%3Dv5.0.6-777777.svg?style=flat-square

[donate-readme]: https://github.com/denysdovhan/spaceship-zsh-theme#donate
[donate-readme]: https://github.com/denysdovhan/spaceship-prompt#donate
[donate-card-url]: https://www.liqpay.com/en/checkout/380951100392
[donate-card-image]: https://img.shields.io/badge/donate-LiqPay-blue.svg?style=flat-square
[donate-btc-image]: https://img.shields.io/badge/donate-BTC-yellow.svg?style=flat-square
Expand Down
6 changes: 3 additions & 3 deletions book.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"plugins": ["edit-link", "github", "github-buttons", "anchorjs"],
"pluginsConfig": {
"edit-link": {
"base": "https://github.com/denysdovhan/spaceship-zsh-theme/tree/master",
"base": "https://github.com/denysdovhan/spaceship-prompt/tree/master",
"label": "Edit This Page"
},
"github": {
"url": "https://github.com/denysdovhan/spaceship-zsh-theme/"
"url": "https://github.com/denysdovhan/spaceship-prompt/"
},
"github-buttons": {
"buttons": [{
"user": "denysdovhan",
"repo": "spaceship-zsh-theme",
"repo": "spaceship-prompt",
"type": "star",
"size": "small",
"count": true
Expand Down
2 changes: 1 addition & 1 deletion docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Accessible to any program or script running in a current shell session.
```zsh
echo $SPACESHIP_ROOT
#> /path/to/spaceship-zsh-theme
#> /path/to/spaceship-prompt
```
## `spaceship::section <color> [prefix] <content> [suffix]`
Expand Down
4 changes: 2 additions & 2 deletions docs/Troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ Preview shows `spaceship` prompt setup with:
* [zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting) to have commands colorized.
* [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions) to have browser-like autocompletions.

See [screenshots](https://github.com/denysdovhan/spaceship-zsh-theme/wiki/Screenshots) wiki for more color schemes examples.
See [screenshots](https://github.com/denysdovhan/spaceship-prompt/wiki/Screenshots) wiki for more color schemes examples.

## Does not help?

If any of above does not help, please, [file an issue](https://github.com/denysdovhan/spaceship-zsh-theme/issues/new), describe your problem and we will gladly help you.
If any of above does not help, please, [file an issue](https://github.com/denysdovhan/spaceship-prompt/issues/new), describe your problem and we will gladly help you.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "spaceship-zsh-theme",
"name": "spaceship-prompt",
"version": "2.11.0",
"description": "An “Oh My ZSH!” theme for Astronauts.",
"files": [
Expand All @@ -24,7 +24,7 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/denysdovhan/spaceship-zsh-theme.git"
"url": "git+https://github.com/denysdovhan/spaceship-prompt.git"
},
"keywords": [
"prompt",
Expand All @@ -36,9 +36,9 @@
"author": "Denys Dovhan <[email protected]> (http://denysdovhan.com/)",
"license": "MIT",
"bugs": {
"url": "https://github.com/denysdovhan/spaceship-zsh-theme/issues"
"url": "https://github.com/denysdovhan/spaceship-prompt/issues"
},
"homepage": "https://github.com/denysdovhan/spaceship-zsh-theme#readme",
"homepage": "https://github.com/denysdovhan/spaceship-prompt#readme",
"devDependencies": {
"gitbook-cli": "^2.3.2",
"gitbook-plugin-anchorjs": "^1.1.1",
Expand Down
8 changes: 4 additions & 4 deletions scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env sh
#
# Author: Denys Dovhan, denysdovhan.com
# https://github.com/denysdovhan/spaceship-zsh-theme
# https://github.com/denysdovhan/spaceship-prompt

# ------------------------------------------------------------------------------
# Colors
Expand All @@ -26,9 +26,9 @@ fi
# ------------------------------------------------------------------------------

ZSHRC="$HOME/.zshrc"
REPO='https://github.com/denysdovhan/spaceship-zsh-theme.git'
REPO='https://github.com/denysdovhan/spaceship-prompt.git'
SOURCE="$PWD/spaceship.zsh"
USER_SOURCE="$HOME/.spaceship-zsh-theme"
USER_SOURCE="$HOME/.spaceship-prompt"
DEST='/usr/local/share/zsh/site-functions'
USER_DEST="$HOME/.zfunctions"

Expand Down Expand Up @@ -74,7 +74,7 @@ append_zshrc() {
# 2. Install via curl or wget
if [[ ! -f "$SOURCE" ]]; then
warn "Spaceship is not present in current directory"
# Clone repo into the ~/..spaceship-zsh-theme and change SOURCE
# Clone repo into the ~/..spaceship-prompt and change SOURCE
git clone "$REPO" "$USER_SOURCE"
SOURCE="$USER_SOURCE/spaceship.zsh"
else
Expand Down
4 changes: 2 additions & 2 deletions scripts/uninstall.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env sh
#
# Author: Denys Dovhan, denysdovhan.com
# https://github.com/denysdovhan/spaceship-zsh-theme
# https://github.com/denysdovhan/spaceship-prompt

# ------------------------------------------------------------------------------
# Colors
Expand All @@ -26,7 +26,7 @@ fi
# ------------------------------------------------------------------------------

ZSHRC="$HOME/.zshrc"
USER_SOURCE="$HOME/.spaceship-zsh-theme"
USER_SOURCE="$HOME/.spaceship-prompt"
GLOBAL_DEST="/usr/local/share/zsh/site-functions/prompt_spaceship_setup"
USER_DEST="$HOME/.zfunctions/prompt_spaceship_setup"

Expand Down
2 changes: 1 addition & 1 deletion spaceship.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# Author: Denys Dovhan, denysdovhan.com
# License: MIT
# https://github.com/denysdovhan/spaceship-zsh-theme
# https://github.com/denysdovhan/spaceship-prompt

# Current version of Spaceship
# Useful for issue reporting
Expand Down

0 comments on commit ef280c0

Please sign in to comment.