From a03be895e586010986a90742b885a742310d2a89 Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Wed, 18 Jun 2025 21:58:23 -0400 Subject: fix hyprland launch and git ps1 --- .zprofile | 5 +++++ .zshrc | 11 ++++++++--- README.md | 1 + 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 .zprofile diff --git a/.zprofile b/.zprofile new file mode 100644 index 0000000..4c47666 --- /dev/null +++ b/.zprofile @@ -0,0 +1,5 @@ +export PATH="$HOME/dotfiles/scripts/:$PATH" + +if [ -z "$DISPLAY" ] && [ "$(tty)" = "/dev/tty1" ]; then + exec dbus-launch --exit-with-session Hyprland +fi diff --git a/.zshrc b/.zshrc index ad1427c..38520d8 100644 --- a/.zshrc +++ b/.zshrc @@ -14,10 +14,15 @@ setopt hist_ignore_space setopt autocd setopt extendedglob -# Prompt +# Aliases alias ls='ls --color=auto' alias grep='grep --color=auto' -PROMPT="[%B%F{33}%n%f%b%F{15}@%f%F{81}%m%f] %F{47}%~ %F{15}$ " + +# Prompt +set_prompt() { + PROMPT="[%B%F{33}%n%f%b%F{15}@%f%F{81}%m%f] %F{47}%~ %F{105}$(git-ps1)%F{15}$ " +} +precmd_functions+=(set_prompt) # Vi mode bindkey -v @@ -37,4 +42,4 @@ zle-line-init() { zle -N zle-line-init echo -ne '\e[5 q' # Use beam shape cursor on startup. preexec() { echo -ne '\e[5 q' ;} # Use beam shape cursor for each new prompt. -KEYTIMEOUT=1 +KEYTIMEOUT=1 # remove lag diff --git a/README.md b/README.md index b9b8e22..a2858c6 100644 --- a/README.md +++ b/README.md @@ -22,5 +22,6 @@ Everything can be installed by running `stow .` Since there are probably conflic ## TODO - [ ] Git branch in PS1 - [ ] Hyprpaper and idle +- [ ] Cursor - [ ] Wmenu for commands - [ ] Status bar -- cgit v1.2.3