From 66ae6391e3ef36d359dd62769e708e7a425cde58 Mon Sep 17 00:00:00 2001 From: HE7086 Date: Tue, 16 Jul 2024 21:29:11 +0200 Subject: [PATCH] [no message] --- zsh/.config/zsh/functions.zsh | 8 ++++++++ zsh/.zshenv | 1 + 2 files changed, 9 insertions(+) diff --git a/zsh/.config/zsh/functions.zsh b/zsh/.config/zsh/functions.zsh index 2634b40..5f68a83 100644 --- a/zsh/.config/zsh/functions.zsh +++ b/zsh/.config/zsh/functions.zsh @@ -178,6 +178,14 @@ function nix() { esac } +function printpath() { + if [[ -n $path ]]; then + printf '%s\n' $path | nl + else + echo $PATH | sed 's/:/\n/g' | nl + fi +} + # function bkup() { # [[ $# -lt 2 ]] && echo "usage: bkup " && return 0; diff --git a/zsh/.zshenv b/zsh/.zshenv index 94758fb..5ca9d4a 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -10,6 +10,7 @@ export LESS='-R' typeset -U PATH path path=( + ~/.local/share/JetBrains/Toolbox/scripts ~/.nix-profile/bin ~/.local/bin $path