From 63cf241d930f6532b43e72a6317b516173f5e781 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Mon, 30 Jun 2025 23:51:44 +0200 Subject: Update --- .shenanigans.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to '.shenanigans.sh') diff --git a/.shenanigans.sh b/.shenanigans.sh index d537ad2..ebb27de 100755 --- a/.shenanigans.sh +++ b/.shenanigans.sh @@ -1,8 +1,8 @@ # Software list (Void Linux): # void-repo-nonfree void-repo-multilib void-repo-multilib-nonfree -# file-roller xfce4-screenshooter xsetroot +# file-roller xfce4-screenshooter xfce4-plugins xsetroot thunar-archive-plugin # clang clang-tools-extra vim stow git curl tmux hstr tree make cmake -# entr ack lazygit newsboat htop +# entr ack lazygit newsboat htop mc # Only run if the script is being sourced (bashrc). if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then @@ -12,8 +12,12 @@ if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then export VISUAL=vim export EDITOR=vim + git_branch() { + git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' + } + # Better prompt. - export PS1="\n# \u@\h \T \w\n# " + export PS1='\n# \u@\h \T \w $(git_branch)\n# ' # General aliases. alias l='ls -lh' @@ -45,3 +49,7 @@ if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then export HSTR_CONFIG=hicolor if [[ $- =~ .i. ]]; then bind '"\C-h": "\C-a hstr -- \C-j"'; fi fi + +wow() { + cd ~/Games/turtlewow && ./wow.sh +} -- cgit v1.2.3