From 2305acaa23a06fc116767ec7687d3508ff7aedeb Mon Sep 17 00:00:00 2001 From: Andre Ramnitz Date: Thu, 5 Sep 2024 23:39:44 +0200 Subject: [PATCH] bash: seperate paths for interactive, non-interactive use --- home/dot-bash_profile | 2 ++ home/dot-bashrc | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/home/dot-bash_profile b/home/dot-bash_profile index cee4bae3..cd984380 100644 --- a/home/dot-bash_profile +++ b/home/dot-bash_profile @@ -1,5 +1,7 @@ # /etc/skel/.bash_profile +export PATH="$PATH:/opt/android-sdk/platform-tools:$HOME/.local/bin" + export VDPAU_DRIVER=radeonsi export EDITOR="kks edit" export FZF_DEFAULT_OPTS='--multi --layout=reverse --preview-window=down:60%' diff --git a/home/dot-bashrc b/home/dot-bashrc index 5491c410..61ba756f 100644 --- a/home/dot-bashrc +++ b/home/dot-bashrc @@ -6,7 +6,8 @@ # that can't tolerate any output. So make sure this doesn't display # anything or bad things will happen ! -export PATH="$PATH:/opt/android-sdk/platform-tools:$HOME/go/bin:$HOME/.cargo/bin:$HOME/.local/bin:$HOME/Applications" +# export PATH="$PATH:/opt/android-sdk/platform-tools:$HOME/go/bin:$HOME/.cargo/bin:$HOME/.local/bin:$HOME/Applications" +export PATH="$PATH:$HOME/go/bin:$HOME/.cargo/bin:$HOME/Applications" # export BROWSER='qutebrowser \--untrusted-args "%u"' export EDITOR='kks edit' @@ -151,7 +152,7 @@ shopt -s nullglob # Change working dir in shell to last dir in lf on exit (adapted from ranger). lfcd () { # `command` is needed in case `lfcd` is aliased to `lf` - cd "$(command lf -print-last-dir "$@")" + cd "$(command lf -print-last-dir "$@")" || exit } # Put your fun stuff here. -- 2.51.2