From 2d60b7f1c34e824f4056d0fc8bbecca9047bf6d9 Mon Sep 17 00:00:00 2001 From: Fabio Scotto di Santolo Date: Tue, 31 Dec 2024 14:28:21 +0100 Subject: [PATCH] Update ZSH configurations --- profile/.profile.d/rust.sh | 5 +++++ profile/.profile.d/zsh.sh | 13 ------------- zsh/.zshenv | 6 +++++- zsh/.zshrc | 12 ++++++++++++ 4 files changed, 22 insertions(+), 14 deletions(-) create mode 100644 profile/.profile.d/rust.sh delete mode 100644 profile/.profile.d/zsh.sh diff --git a/profile/.profile.d/rust.sh b/profile/.profile.d/rust.sh new file mode 100644 index 0000000..4b9ab3b --- /dev/null +++ b/profile/.profile.d/rust.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +if [ -e "$HOME/.cargo" ]; then + source "$HOME/.cargo/env" +fi \ No newline at end of file diff --git a/profile/.profile.d/zsh.sh b/profile/.profile.d/zsh.sh deleted file mode 100644 index 55119ed..0000000 --- a/profile/.profile.d/zsh.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -case $(uname -s) in - "Darwin") - export ZSH_HIGHLIGHT_DIR=/opt/homebrew/share/zsh-syntax-highlighting - export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/opt/homebrew/share/zsh-syntax-highlighting/highlighters - ;; - "Linux") - export ZSH_HIGHLIGHT_DIR=/usr/share/zsh-syntax-highlighting - export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/usr/share/zsh-syntax-highlighting/highlighters - export ZSH_AUTOSUGGESTIONS_DIR=/usr/share/zsh-autosuggestions - ;; -esac \ No newline at end of file diff --git a/zsh/.zshenv b/zsh/.zshenv index 7f66855..a284bfd 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -8,4 +8,8 @@ fi if command -v oh-my-posh > /dev/null 2>&1; then # Initialize Oh My Posh eval "$(oh-my-posh init zsh --config "$(brew --prefix oh-my-posh)/themes/peru.omp.json")" -fi \ No newline at end of file +fi + +export VIRTUAL_ENV_DISABLE_PROMPT=1 +export EDITOR=nvim +export HOMEBREW_NO_ENV_HINTS=1 diff --git a/zsh/.zshrc b/zsh/.zshrc index 147b9af..9e1ae20 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -149,5 +149,17 @@ fpath=(~/.zsh $fpath) autoload run-help autoload -Uz compinit && compinit -u +case $(uname -s) in + "Darwin") + export ZSH_HIGHLIGHT_DIR=/opt/homebrew/share/zsh-syntax-highlighting + export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/opt/homebrew/share/zsh-syntax-highlighting/highlighters + ;; + "Linux") + export ZSH_HIGHLIGHT_DIR=/usr/share/zsh-syntax-highlighting + export ZSH_HIGHLIGHT_HIGHLIGHTERS_DIR=/usr/share/zsh-syntax-highlighting/highlighters + export ZSH_AUTOSUGGESTIONS_DIR=/usr/share/zsh-autosuggestions + ;; +esac + source "$ZSH_HIGHLIGHT_DIR/zsh-syntax-highlighting.zsh" source "$ZSH_AUTOSUGGESTIONS_DIR/zsh-autosuggestions.zsh"