diff options
author | tdro <tdro@users.noreply.github.com> | 2020-04-14 00:09:53 -0400 |
---|---|---|
committer | tdro <tdro@users.noreply.github.com> | 2020-04-14 00:12:58 -0400 |
commit | 9b063e78d9e3f66ccfacf1183dddc9a3aab11ab5 (patch) | |
tree | 94083700209b1be711c25ad8960e04785eef317e | |
parent | b9634b0d6b03a7dd1bad3871750cdbeb6a1d3e40 (diff) | |
download | dotfiles-9b063e78d9e3f66ccfacf1183dddc9a3aab11ab5.tar.gz dotfiles-9b063e78d9e3f66ccfacf1183dddc9a3aab11ab5.tar.bz2 dotfiles-9b063e78d9e3f66ccfacf1183dddc9a3aab11ab5.zip |
.bashrc: Check if profile loaded
-rw-r--r-- | .bash_profile | 2 | ||||
-rw-r--r-- | .bashrc | 2 | ||||
-rwxr-xr-x | .local/bin/scripts/app-launcher | 2 | ||||
-rwxr-xr-x | .local/bin/scripts/app-launcher-priv | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/.bash_profile b/.bash_profile index d8acd79..6b82176 100644 --- a/.bash_profile +++ b/.bash_profile @@ -36,4 +36,4 @@ export FZF_DEFAULT_OPTS="--color=fg:255,hl:9 \ . /etc/profile.d/theme.sh # source bashrc -[ -z "$DISPLAY" ] && . "$HOME/.bashrc" +[ -z "$BASH_PROFILE" ] && . "$HOME/.bashrc" @@ -1,7 +1,7 @@ #!/bin/bash # source exports -[ -z "$DISPLAY" ] || . "$HOME/.bash_profile" +export BASH_PROFILE=loaded && . "$HOME/.bash_profile"; # bail if not interactive [[ $- != *i* ]] && return; diff --git a/.local/bin/scripts/app-launcher b/.local/bin/scripts/app-launcher index 586f5a0..d16fccb 100755 --- a/.local/bin/scripts/app-launcher +++ b/.local/bin/scripts/app-launcher @@ -1,3 +1,3 @@ #!/bin/sh -. "$HOME/.bash_profile" +export BASH_PROFILE=loaded && . "$HOME/.bash_profile"; rofi -fullscreen -show run -display-run '$' -font 'ubuntu 12' -padding 250; diff --git a/.local/bin/scripts/app-launcher-priv b/.local/bin/scripts/app-launcher-priv index 5e55b04..b6f3db2 100755 --- a/.local/bin/scripts/app-launcher-priv +++ b/.local/bin/scripts/app-launcher-priv @@ -1,3 +1,3 @@ #!/bin/sh -. "$HOME/.bash_profile" +export BASH_PROFILE=loaded && . "$HOME/.bash_profile"; rofi -fullscreen -show run -display-run '#' -run-command 'sudo -A {cmd}' -font 'ubuntu 12' -padding 250; |