From 35f4f5f52410d666e2ddc423fe21e0bcc92d9772 Mon Sep 17 00:00:00 2001 From: Chris Titus Date: Thu, 19 Jun 2025 11:16:10 -0500 Subject: [PATCH] update --- .bashrc | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.bashrc b/.bashrc index 7393093..3536907 100644 --- a/.bashrc +++ b/.bashrc @@ -1,6 +1,5 @@ #!/usr/bin/env bash iatest=$(expr index "$-" i) - ####################################################### # SOURCED ALIAS'S AND SCRIPTS BY zachbrowne.me ####################################################### @@ -141,7 +140,7 @@ alias freshclam='sudo freshclam' alias vi='nvim' alias svi='sudo vi' alias vis='nvim "+set si"' - +alias yayf="yay -Slq | fzf --multi --preview 'yay -Sii {1}' --preview-window=down:75% | xargs -ro yay -S" # Change directory aliases alias home='cd ~' @@ -511,7 +510,7 @@ function whatsmyip () { # External IP Lookup echo -n "External IP: " - curl -s ifconfig.me + curl -4 ifconfig.me } # View Apache logs @@ -619,7 +618,8 @@ function hb { # Set the ultimate amazing command prompt ####################################################### -alias hug="hugo server -F --bind=10.0.0.97 --baseURL=http://10.0.0.97" +alias hug="systemctl --user restart hugo" +alias lanm="systemctl --user restart lan-mouse" # Check if the shell is interactive if [[ $- == *i* ]]; then @@ -631,3 +631,12 @@ export PATH=$PATH:"$HOME/.local/bin:$HOME/.cargo/bin:/var/lib/flatpak/exports/bi eval "$(starship init bash)" eval "$(zoxide init bash)" + +if [[ -z $DISPLAY ]] && [[ $(tty) = /dev/tty1 ]]; then + +exec startx + +fi + + +