diff options
| author | Simen A. W. Olsen <so@bjerk.io> | 2024-07-27 16:37:06 +0200 |
|---|---|---|
| committer | Simen A. W. Olsen <so@bjerk.io> | 2024-07-27 16:37:06 +0200 |
| commit | d296370b1ea7c6969a64a2c02e1eca84db223880 (patch) | |
| tree | 55b6188bfaaa432f09274830fa05d4cb74c19aa3 /.zshrc | |
| parent | 3a9c76d44f5c60c0f66acad9cbfbc8f255aff0dc (diff) | |
| download | dotfiles-d296370b1ea7c6969a64a2c02e1eca84db223880.tar.gz dotfiles-d296370b1ea7c6969a64a2c02e1eca84db223880.zip | |
Refactor shell and Neovim configurations, update aliases, plugins, and settings.
Diffstat (limited to '.zshrc')
| -rw-r--r-- | .zshrc | 28 |
1 files changed, 15 insertions, 13 deletions
@@ -1,19 +1,21 @@ # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH -# Path to your oh-my-zsh installation. -export ZSH="/Users/cobraz/.oh-my-zsh" +# Download Znap, if it's not there yet. +[[ -r ~/.zsh_repos/znap/znap.zsh ]] || + git clone --depth 1 -- \ + https://github.com/marlonrichert/zsh-snap.git ~/.zsh_repos/znap +source ~/.zsh_repos/znap/znap.zsh # Start Znap +znap eval starship 'starship init zsh --print-full-init' +znap prompt -ZSH_THEME="robbyrussell" +znap source marlonrichert/zsh-autocomplete +znap source zsh-users/zsh-autosuggestions -lugins=(git) +for file in ~/.{aliases,path,extras}; do + if [[ -r "$file" ]] && [[ -f "$file" ]]; then + # shellcheck source=/dev/null + source "$file" + fi +done -source $ZSH/oh-my-zsh.sh -if [[ -r "${HOME}/.bashrc" ]]; then - # shellcheck source=/dev/null - source "${HOME}/.bashrc" -fi - - -. "$HOME/.cargo/env" -autoload -U compinit; compinit |
