From 0fdc8a0fec07a09826a8dc6c54e0bf919389073c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Gr=C3=B6ger?= Date: Tue, 16 May 2023 21:24:34 +0200 Subject: [PATCH] update zshrc for macos and linux --- .zshrc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.zshrc b/.zshrc index 40aaf66..8fdf512 100644 --- a/.zshrc +++ b/.zshrc @@ -5,15 +5,21 @@ if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]] source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" fi +if [[ "$OSTYPE" == "darwin"* ]];then + HOME=/Users/crimsen +else + HOME=/home/crimsen +fi + #export TERM="xterm-256color" #export TERM="xterm-256color" # If you come from bash you might have to change your $PATH. # export PATH=$HOME/bin:/usr/local/bin:$PATH -export PATH=/home/crimsen/.cargo/bin:$PATH +export PATH=$HOME/.cargo/bin:$PATH -export PATH="$PATH:/home/crimsen/.local/share/JetBrains/Toolbox/scripts:/home/crimsen/.local/bin" +export PATH="$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts:$HOME/.local/bin" # Path to your oh-my-zsh installation. -export ZSH="/home/crimsen/.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,