Compare commits

...

2 commits

Author SHA1 Message Date
Augusto Dwenger 3713d000f5 Update zsh config to use the starship prompt theme
- Remove oh-my-zsh configuration
2020-10-12 18:19:53 +02:00
Augusto Dwenger d19feeaa25 Update the Alacritty Font to Go Mono Nerd Font 2020-10-12 18:02:29 +02:00
4 changed files with 22 additions and 40 deletions

View file

@ -3,7 +3,7 @@
## Requirements
- [AnonymousPro Powerline](https://github.com/powerline/fonts/tree/master/AnonymousPro) font.
- [Go Mono Nerd Font](https://github.com/ryanoasis/nerd-fonts/tree/master/patched-fonts/Go-Mono) font.
## Configuration
The configuration location that I use is: `$HOME/.config/alacritty/alacritty.yml`

View file

@ -58,25 +58,25 @@ window:
font:
# Normal (roman) font face
normal:
family: Anonymous Pro for Powerline
family: Go Mono Nerd Font
style: Regular
# Bold font face
bold:
family: Anonymous Pro for Powerline
family: Go Mono Nerd Font
style: Bold
# Italic font face
italic:
family: Anonymous Pro for Powerline
family: Go Mono Nerd Font
style: Italic
# Bold italic font face
bold_italic:
family: Anonymous Pro for Powerline
family: Go Mono Nerd Font
style: Bold Italic
size: 10.0
size: 9.0
# Colors (Dracula)
colors:

View file

@ -1,18 +1,21 @@
autoload bashcompinit
bashcompinit
setopt nobeep # No beep
setopt autocd # if only directory path is entered, cd there.
autoload -Uz compinit
compinit
autoload bashcompinit
bashcompinit
bindkey -v
# Set starship prompt theme
eval "$(starship init zsh)"
# Set env vars like path and locals
source $HOME/.profile
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
ZSH_THEME="spaceship"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
source $HOME/.alias_profile
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
@ -46,24 +49,5 @@ ZSH_THEME="spaceship"
# see 'man strftime' for details.
HIST_STAMPS="dd.mm.yyyy"
# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git docker docker-compose golang alias-finder gradle mvn)
source $ZSH/oh-my-zsh.sh
# User configuration
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Set personal aliases, overriding those provided by oh-my-zsh libs,
source $HOME/.alias_profile

View file

@ -4,17 +4,15 @@ The zsh config...
## Requires
- zsh
- [oh-my-zsh](https://ohmyz.sh/)
- [spaceship theme](https://github.com/denysdovhan/spaceship-prompt)
- [starship theme](https://starship.rs)
- The Terminal has to use a Nerd Font.
## Installation
1. Install zsh
2. Install oh-my-zsh
3. From inside zsh with activated oh-my-zsh install the spaceship theme => [https://github.com/denysdovhan/spaceship-prompt#oh-my-zsh](https://github.com/denysdovhan/spaceship-prompt#oh-my-zsh)
4. Run the `update.sh` script
2. Install starship
3. Run the `update.sh` script
After the oh-my-zsh installation you can delete `.zshrc.pre-oh-my-zsh`.
## Configuration
The `.zshrc` will be copied to `$HOME/.zshrc` the `update.sh` script will also create a `$HOME/.profile` file if not available for the env variables and `$HOME/.alias_porfile` for the custom alias config.