From c8264fde670b62cc2aec6179230456dfd9258eb2 Mon Sep 17 00:00:00 2001 From: Solomon Laing Date: Tue, 16 Dec 2025 21:01:44 +1030 Subject: [PATCH] better --- .config/bash/.bashrc | 2 +- .config/shell/profile | 3 ++- .config/x11/xinitrc | 4 ---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.config/bash/.bashrc b/.config/bash/.bashrc index c758121..1ef6232 100644 --- a/.config/bash/.bashrc +++ b/.config/bash/.bashrc @@ -107,7 +107,7 @@ PROMPT_COMMAND=set_prompt [ -f ~/.fzf.bash ] && source ~/.fzf.bash # cargo -[[ -s "$HOME/.local/share/cargo/env" ]] && source "/home/solomon/.local/share/cargo/env" +[[ -f "$HOME/.local/share/cargo/env" ]] && source "/home/solomon/.local/share/cargo/env" #THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!! export SDKMAN_DIR="$HOME/.sdkman" diff --git a/.config/shell/profile b/.config/shell/profile index e63791e..d213684 100644 --- a/.config/shell/profile +++ b/.config/shell/profile @@ -71,7 +71,7 @@ export REPOS="$HOME/repos" export GITUSER="inkletblot" export NOTE_DIR="$HOME/notes/" export DWM_DIR="$REPOS/gitlab.inkletblot.com/inkletblot/dwm-inkletblot/" -export OPENAI_API_KEY="$(touch "$HOME/.config/openai/KEY" && cat "$HOME/.config/openai/KEY")" +export OPENAI_API_KEY="$(mkdir "$HOME/.config/openai" && touch "$HOME/.config/openai/KEY" && cat "$HOME/.config/openai/KEY")" # This is something luke smith has in his profile (which I have stolen, it's nice but # doesn't work very nicely with my login manager, lightdm, and I prefer to just run @@ -81,6 +81,7 @@ export OPENAI_API_KEY="$(touch "$HOME/.config/openai/KEY" && cat "$HOME/.config/ #[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx "$XINITRC" if [ -n "$DESKTOP_SESSION" ]; then + # start gnome keyring to, used to be done by login manager. eval $(gnome-keyring-daemon --start) export SSH_AUTH_SOCK fi diff --git a/.config/x11/xinitrc b/.config/x11/xinitrc index b01295e..069444a 100755 --- a/.config/x11/xinitrc +++ b/.config/x11/xinitrc @@ -6,10 +6,6 @@ else . "$HOME/.xprofile" fi -# start gnome keyring to, used to be done by login manager. -eval "$(gnome-keyring-daemon --start)" -export SSH_AUTH_SOCK - # My default is dwm for now. session=${1:-dwm}