From 6b675aea66b80a23e3f3c40b0904d576577781a5 Mon Sep 17 00:00:00 2001 From: "Simen A. W. Olsen" Date: Fri, 27 Dec 2024 20:46:38 +0100 Subject: fix zsh --- zsh/.config/zsh/.zshrc | 17 +++++++++++++++++ zsh/.hushlogin | 0 zsh/.zshenv | 2 +- zsh/.zshrc | 18 ------------------ 4 files changed, 18 insertions(+), 19 deletions(-) create mode 100755 zsh/.config/zsh/.zshrc create mode 100644 zsh/.hushlogin delete mode 100755 zsh/.zshrc (limited to 'zsh') diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc new file mode 100755 index 0000000..e9594d7 --- /dev/null +++ b/zsh/.config/zsh/.zshrc @@ -0,0 +1,17 @@ +#!/bin/bash +# ^----- get shellcheck hints based on bash +# https://github.com/koalaman/shellcheck/issues/809 +# shellcheck disable=SC1090 # sourced filenames with variables + +# 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 + +znap source marlonrichert/zsh-autocomplete +znap source zsh-users/zsh-autosuggestions + diff --git a/zsh/.hushlogin b/zsh/.hushlogin new file mode 100644 index 0000000..e69de29 diff --git a/zsh/.zshenv b/zsh/.zshenv index ac043fe..563696f 100755 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -20,5 +20,5 @@ path=( /usr/local/{,s}bin(N) $path ) - +eval "$(/opt/homebrew/bin/brew shellenv)" . "$HOME/.cargo/env" diff --git a/zsh/.zshrc b/zsh/.zshrc deleted file mode 100755 index 8734542..0000000 --- a/zsh/.zshrc +++ /dev/null @@ -1,18 +0,0 @@ -#!/bin/bash -# ^----- get shellcheck hints based on bash -# https://github.com/koalaman/shellcheck/issues/809 -# shellcheck disable=SC1090 # sourced filenames with variables -echo "Loading ~/.zshrc" - -# 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 - -znap source marlonrichert/zsh-autocomplete -znap source zsh-users/zsh-autosuggestions - -- cgit v1.2.3