diff options
| author | EuAndreh <eu@euandre.org> | 2020-11-26 14:22:38 -0300 |
|---|---|---|
| committer | EuAndreh <eu@euandre.org> | 2020-11-26 14:22:38 -0300 |
| commit | b8a6980fba25a4248187a19cd41021506a435d9e (patch) | |
| tree | 4c2f9cc9e9fd1b7048d0ed4356c153e67349e9c1 /bash | |
| parent | Move bin/ to scripts/ad-hoc/ (diff) | |
| download | dotfiles-b8a6980fba25a4248187a19cd41021506a435d9e.tar.gz dotfiles-b8a6980fba25a4248187a19cd41021506a435d9e.tar.xz | |
Reset $PATH and use $GUIX_PROFILE
Diffstat (limited to 'bash')
| -rw-r--r-- | bash/bashrc.sh | 1 | ||||
| -rw-r--r-- | bash/env.sh | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/bash/bashrc.sh b/bash/bashrc.sh index 4f8660ff..3b58a3fb 100644 --- a/bash/bashrc.sh +++ b/bash/bashrc.sh @@ -6,6 +6,7 @@ export DOTFILES=~/dev/libre/dotfiles source $DOTFILES/bash/config.sh source $DOTFILES/bash/env.sh +source $GUIX_PROFILE/etc/profile source $DOTFILES/bash/colors.sh source $DOTFILES/bash/ps1.sh source $DOTFILES/bash/aliases.sh diff --git a/bash/env.sh b/bash/env.sh index 045a364b..5a2319c0 100644 --- a/bash/env.sh +++ b/bash/env.sh @@ -3,8 +3,16 @@ export R='16686@ch-s010.rsync.net' export EDITOR=vi export INPUTRC=~/.inputrc -export PATH="${DOTFILES}/scripts/ad-hoc:${DOTFILES}/scripts/cron:$HOME/annex/bin/ad-hoc:$HOME/annex/bin/cron:$DOTFILES/bin:${PATH}:$HOME/.config/guix/current/bin" export BORG_REMOTE_PATH='borg1' # https://git.savannah.gnu.org/cgit/guix.git/tree/doc/guix.texi?id=cd6ae1cee95644b9aa712a7192bc9677a04c146b#n1287 export NIX_BUILD_CORES=0 + +export GUIX_PROFILE="$HOME/.guix-profile" + +# reset $PATH +PATH='/run/setuid-programs:/run/current-system/profile/bin:/run/current-system/profile/sbin' + +for p in "${DOTFILES}/scripts" "$HOME/annex/bin"; do + PATH="$PATH:$p/ad-hoc:$p/cron" +done |
