switch to .dotfiles folder structure

This commit is contained in:
Elmar Sönser 2021-12-03 12:11:11 +01:00
parent 70a60b5b19
commit 221da4be47
2 changed files with 9 additions and 9 deletions

6
.zshrc
View file

@ -9,7 +9,7 @@ fi
# export PATH=$HOME/bin:/usr/local/bin:$PATH # export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation. # Path to your oh-my-zsh installation.
export ZSH="$HOME/.config_repos/zsh-settings/.oh-my-zsh" export ZSH="$HOME/.dotfiles/zsh-settings/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will # 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, # load a random theme each time oh-my-zsh is loaded, in which case,
@ -17,7 +17,7 @@ export ZSH="$HOME/.config_repos/zsh-settings/.oh-my-zsh"
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
#ZSH_THEME="powerlevel10k/powerlevel10k" #ZSH_THEME="powerlevel10k/powerlevel10k"
#Powerlevel10k Theme #Powerlevel10k Theme
source ~/.config_repos/zsh-settings/themes/powerlevel10k/powerlevel10k.zsh-theme source ~/.dotfiles/zsh-settings/themes/powerlevel10k/powerlevel10k.zsh-theme
#Starship Theme #Starship Theme
#eval "$(starship init zsh)" #eval "$(starship init zsh)"
@ -66,7 +66,7 @@ source ~/.config_repos/zsh-settings/themes/powerlevel10k/powerlevel10k.zsh-theme
# Would you like to use another custom folder than $ZSH/custom? # Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder # ZSH_CUSTOM=/path/to/new-custom-folder
ZSH_CUSTOM=~/.config_repos/zsh-settings ZSH_CUSTOM=~/.dotfiles/zsh-settings
# Which plugins would you like to load? # Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/ # Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Custom plugins may be added to $ZSH_CUSTOM/plugins/

View file

@ -19,19 +19,19 @@
- `gem install colorls` - `gem install colorls`
- Install - Install
- mkdir ~/.config_repos - mkdir ~/.dotfiles
- cd ~/.config_repos - cd ~/.dotfiles
- `git clone --recurse-submodules -j8 https://git.gc4.at/linux/zsh-settings.git` - `git clone --recurse-submodules -j8 https://git.gc4.at/linux/zsh-settings.git`
- Use ssh if you want to commit also: - Use ssh if you want to commit also:
`git clone --recurse-submodules -j8 ssh://git@git.gc4.at:4258/linux/zsh-settings.git` `git clone --recurse-submodules -j8 ssh://git@git.gc4.at:4258/linux/zsh-settings.git`
- --recurse-submodules -j8 is important since .oh-my-zsh and .oh-my-zsh/custom/plugins are also remote repos (int his repo) = submodules - --recurse-submodules -j8 is important since .oh-my-zsh and .oh-my-zsh/custom/plugins are also remote repos (int his repo) = submodules
- `cd ~` - `cd ~`
- `mv .zshrc .zshrc_old && mv .p10k.zsh .p10k.zsh_old && mv .oh-my-zsh .oh-my-zsh_old` - `mv .zshrc .zshrc_old && mv .p10k.zsh .p10k.zsh_old && mv .oh-my-zsh .oh-my-zsh_old`
- `ln -s .config_repos/zsh-settings/.zshrc` - `ln -s .dotfiles/zsh-settings/.zshrc`
- `ln -s .config_repos/zsh-settings/.p10k.zsh` - `ln -s .dotfiles/zsh-settings/.p10k.zsh`
- `ln -s .config_repos/zsh-settings/.oh-my-zsh` - `ln -s .dotfiles/zsh-settings/.oh-my-zsh`
- Update (Submodules included) - Update (Submodules included)
- `cd ~/.config_repos/zsh-settings` - `cd ~/.dotfiles/zsh-settings`
- `git submodule update --recursive --remote` - `git submodule update --recursive --remote`
- `cd /opt/nerd-fonts && git pull && .install.sh` - `cd /opt/nerd-fonts && git pull && .install.sh`
- `gem update colorls` - `gem update colorls`