From 1cd0375e05a4f405c2d215f25e441e76de879dc4 Mon Sep 17 00:00:00 2001 From: Santiago Lo Coco Date: Wed, 26 Jan 2022 23:25:56 -0300 Subject: [PATCH] Export LAPTOP --- dotfiles/.zprofile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/dotfiles/.zprofile b/dotfiles/.zprofile index ef51413..4a6e3eb 100644 --- a/dotfiles/.zprofile +++ b/dotfiles/.zprofile @@ -1,14 +1,17 @@ -# Runs only once https://unix.stackexchange.com/questions/71253/what-should-shouldnt-go-in-zshenv-zshrc-zlogin-zprofile-zlogout - -source ~/.zshrc_exports +source $HOME/.zshrc_exports if ! echo $PATH | grep -q "$HOME/.local/bin"; then export PATH=$PATH:$HOME/.local/bin fi -export PATH=$PATH:$HOME/.local/share/gem/ruby/3.0.0/bin +if ! echo $PATH | grep -q "$HOME/.local/share/gem/ruby/3.0.0/bin"; then + export PATH=$PATH:$HOME/.local/share/gem/ruby/3.0.0/bin +fi + +if grep -q "i5" /proc/cpuinfo; then + export LAPTOP +fi if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then exec startx - #ssh-agent startx fi