From 8d3c4e9888fdc4f5b3f143c724d1bf27587fbcf7 Mon Sep 17 00:00:00 2001 From: "dth@taiga.ai" Date: Wed, 18 May 2022 14:31:45 +0200 Subject: [PATCH] :bug: update old .zshrc --- .zshrc | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) diff --git a/.zshrc b/.zshrc index 997839a..06ffb72 100644 --- a/.zshrc +++ b/.zshrc @@ -1,21 +1,14 @@ -# README: -# If zsh is not yet installed: -# https://github.com/ohmyzsh/ohmyzsh/wiki/Installing-ZSH -# If oh-my-zsh is not yet installed: -# https://ohmyz.sh/#install -# During zsh setup, a `.zhrc` file is generated and left in the root. -# The following .zshrc content should extend (rather than replace) your `.zshrc`. # 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/dth/.oh-my-zsh" +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 # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes -ZSH_THEME="sunaku" # set by `omz` +ZSH_THEME="xiong-chiamiov" # Set list of themes to pick from when loading at random # Setting this variable when ZSH_THEME=random will cause zsh to load @@ -30,14 +23,13 @@ ZSH_THEME="sunaku" # set by `omz` # Case-sensitive completion must be off. _ and - will be interchangeable. # HYPHEN_INSENSITIVE="true" -# Uncomment the following line to disable bi-weekly auto-update checks. -# DISABLE_AUTO_UPDATE="true" - -# Uncomment the following line to automatically update without prompting. -# DISABLE_UPDATE_PROMPT="true" +# Uncomment one of the following lines to change the auto-update behavior +# zstyle ':omz:update' mode disabled # disable automatic updates +zstyle ':omz:update' mode auto # update automatically without asking +# zstyle ':omz:update' mode reminder # just remind me to update when it's time # Uncomment the following line to change how often to auto-update (in days). -# export UPDATE_ZSH_DAYS=13 +# zstyle ':omz:update' frequency 13 # Uncomment the following line if pasting URLs and other text is messed up. # DISABLE_MAGIC_FUNCTIONS="true" @@ -90,11 +82,12 @@ source $ZSH/oh-my-zsh.sh # export LANG=en_US.UTF-8 # Preferred editor for local and remote sessions -if [[ -n $SSH_CONNECTION ]]; then - export EDITOR='vim' -else - export EDITOR='mvim' -fi +export EDITOR='nvim' +# if [[ -n $SSH_CONNECTION ]]; then +# export EDITOR='vim' +# else +# export EDITOR='mvim' +# fi # Compilation flags # export ARCHFLAGS="-arch x86_64" @@ -114,4 +107,3 @@ alias docos="docker compose -f docker-compose.staging.yml" # use vim bindings bindkey -v -alias config='/usr/bin/git --git-dir=/Users/dth/.cfg/ --work-tree=/Users/dth'