-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dotfiles | Add theme spaceship.zsh (#6)
* dotfile | Add theme spaceship.zsh * Testing workflow * Set posixly to "" * Testing * Update command * Remove workflow * Add spaceship config file * Change git status color to yellow * Update permissions on scripts
- Loading branch information
1 parent
bc463cc
commit eb45a28
Showing
9 changed files
with
129 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
.git-template/hooks | ||
.config/spaceship |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,76 +1,82 @@ | ||
# dotfiles-macos | ||
|
||
This repo depends on the [Homesick](https://github.com/technicalpickles/homesick) project to manage dotfiles. | ||
## macOS | ||
|
||
#### OS | ||
|
||
- macOS | ||
This repo depends on the [Homesick](https://github.com/technicalpickles/homesick) & [Homebrew](https://github.com/Homebrew/brew) projects to manage system dotfiles. | ||
|
||
### Required: Ruby | ||
|
||
[homebrew - Ruby](https://www.ruby-lang.org/en/documentation/installation/) | ||
[Homebrew - Ruby](https://www.ruby-lang.org/en/documentation/installation/) | ||
|
||
``` | ||
brew install ruby | ||
``` | ||
|
||
[Ruby Version Manager - RVM](https://rvm.io/) | ||
|
||
##### Verify GPG keys | ||
|
||
``` | ||
brew install gnupg | ||
``` | ||
|
||
##### RVM Installation | ||
###### [Ruby Version Manager - RVM](https://rvm.io/) | ||
|
||
``` | ||
curl -sSL https://get.rvm.io | bash -s stable --auto-dotfiles | ||
``` | ||
--- | ||
|
||
### To configure dotfiles | ||
### Configure dotfiles with Homesick | ||
|
||
1. Install Homesick with `gem install homesick` | ||
2. Clone this castle with `homesick clone nicholashoule/dotfiles-macos` | ||
3. Create the symlinks with `homesick symlink dotfiles` | ||
|
||
--- | ||
|
||
#### Other post-configurations | ||
### Post-configurations | ||
|
||
##### Set up VundleVim | ||
#### Set up VundleVim | ||
|
||
[GitHub - VundleVim](https://github.com/VundleVim/Vundle.vim) | ||
###### [GitHub - VundleVim](https://github.com/VundleVim/Vundle.vim) | ||
|
||
``` | ||
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | ||
``` | ||
|
||
To install from command line: `vim +PluginInstall +qall` | ||
- To install from command line: `vim +PluginInstall +qall` | ||
- To install inside Vim, launch vim and run `:PluginInstall` | ||
|
||
Launch vim and run `:PluginInstall` | ||
#### Set up .oh-my-zsh | ||
|
||
##### Set up .oh-my-zsh | ||
|
||
[GitHub - Oh My Zsh](https://github.com/ohmyzsh/ohmyzsh) | ||
###### [GitHub - Oh My Zsh](https://github.com/ohmyzsh/ohmyzsh) | ||
|
||
``` | ||
export ZSH="${HOME}/.oh-my-zsh" | ||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | ||
``` | ||
|
||
##### Set up coreutils | ||
#### Set up Spaceship (Theme) | ||
|
||
###### [zsh - Spaceship](https://github.com/spaceship-prompt/spaceship-prompt) | ||
|
||
``` | ||
brew install spaceship | ||
``` | ||
|
||
#### Set up Nerd Fonts (Fonts) | ||
|
||
[homebrew - coreutils](https://formulae.brew.sh/formula/coreutils) | ||
###### [zsh - Nerd Fonts](https://github.com/ryanoasis/nerd-fonts) | ||
|
||
``` | ||
brew tap homebrew/cask-fonts | ||
brew install --cask font-hack-nerd-font | ||
``` | ||
|
||
#### Set up coreutils | ||
|
||
###### [homebrew - coreutils](https://formulae.brew.sh/formula/coreutils) | ||
|
||
``` | ||
brew install coreutils | ||
``` | ||
|
||
##### Set up pre-commit | ||
#### Set up pre-commit | ||
|
||
[homebrew - pre-commit](https://pre-commit.com/#installation) | ||
###### [homebrew - pre-commit](https://pre-commit.com/#installation) | ||
|
||
``` | ||
brew install pre-commit | ||
``` | ||
|
||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
#!/bin/zsh | ||
# shellcheck disable=all | ||
# Settings, config: https://spaceship-prompt.sh/config/intro/ | ||
# UTF-8 Symbols: https://www.w3schools.com/charsets/ref_utf_arrows.asp | ||
|
||
## Prompt-level options | ||
# https://spaceship-prompt.sh/config/prompt/ | ||
|
||
## Time | ||
SPACESHIP_TIME_SHOW=true | ||
SPACESHIP_TIME_SUFFIX="|" | ||
SPACESHIP_TIME_FORMAT='%W%t' | ||
SPACESHIP_TIME_COLOR='white' | ||
|
||
## Prompt (Char) | ||
SPACESHIP_CHAR_PREFIX="↳" | ||
SPACESHIP_CHAR_SYMBOL=" : " | ||
SPACESHIP_CHAR_SYMBOL_ROOT="#" | ||
|
||
## Username & Hostname | ||
SPACESHIP_USER_SHOW=always | ||
SPACESHIP_USER_PREFIX="@" | ||
SPACESHIP_USER_SUFFIX="" | ||
SPACESHIP_USER_COLOR="green" | ||
SPACESHIP_USER_COLOR_ROOT="red" | ||
SPACESHIP_HOST_SHOW="always" | ||
SPACESHIP_HOST_SHOW_FULL=true | ||
SPACESHIP_HOST_PREFIX="" | ||
SPACESHIP_HOST_SUFFIX="|" | ||
SPACESHIP_HOST_COLOR="blue" | ||
SPACESHIP_HOST_COLOR_SSH="red" | ||
|
||
## Directory | ||
SPACESHIP_DIR_SHOW=true | ||
SPACESHIP_DIR_TRUNC_REPO=false | ||
SPACESHIP_DIR_PREFIX="|" | ||
SPACESHIP_DIR_SUFFIX="|" | ||
SPACESHIP_DIR_COLOR="cyan" | ||
|
||
## Execution time | ||
SPACESHIP_EXEC_TIME_SHOW=false | ||
|
||
## Git | ||
# https://spaceship-prompt.sh/sections/git/ | ||
SPACESHIP_GIT_STATUS_SHOW=true | ||
SPACESHIP_GIT_STATUS_COLOR="yellow" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/zsh | ||
# shellcheck disable=all | ||
# https://github.com/ryanoasis/nerd-fonts | ||
# https://github.com/ryanoasis/nerd-fonts#option-4-homebrew-fonts | ||
# Check for brew (Homebrew) | ||
if command -v brew 1>/dev/null 2>&1; then | ||
# Install brew packages | ||
brew tap homebrew/cask-fonts | ||
brew install --cask font-hack-nerd-font | ||
fi |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Brewfile | ||
# https://github.com/Homebrew/homebrew-bundle | ||
# tap "homebrew/cask" | ||
tap "homebrew/cask-fonts" | ||
|
||
# set arguments for all 'brew install --cask' commands | ||
cask_args appdir: "~/Applications", require_sha: true | ||
|
||
# Install brew packages | ||
brew "coreutils" # Install GNU core utilities | ||
brew "wget" # Install GNU wget | ||
brew "findutils" # Install GNU find, locate, updatedb, and xargs, g-prefixed | ||
brew "gnupg" if OS.mac? # Install GNU gpg (GnuPG) | ||
brew "tree" # Install GNU tree | ||
|
||
# Others | ||
#brew "[email protected]", restart_service: true, link: true, conflicts_with: ["mysql"] # MySQL 5.6 | ||
brew "pre-commit" # Install pre-commit package manager (https://pre-commit.com/#install) | ||
|
||
# Themes & Fonts | ||
brew "spaceship" # Theme, https://github.com/spaceship-prompt/spaceship-prompt | ||
brew "font-hack-nerd-font" # Fonts, https://github.com/ryanoasis/nerd-fonts |