aboutsummaryrefslogtreecommitdiff
path: root/.shenanigans.sh
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2025-06-30 23:51:44 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2025-06-30 23:51:44 +0200
commit63cf241d930f6532b43e72a6317b516173f5e781 (patch)
tree9d13854312afd797e762073e1eb3d82bbfc68704 /.shenanigans.sh
parent3a206881b8e16fc9eddf0f31a908b531f56e2e5c (diff)
downloaddotfiles-63cf241d930f6532b43e72a6317b516173f5e781.tar.gz
Update
Diffstat (limited to '.shenanigans.sh')
-rwxr-xr-x.shenanigans.sh14
1 files changed, 11 insertions, 3 deletions
diff --git a/.shenanigans.sh b/.shenanigans.sh
index d537ad2..ebb27de 100755
--- a/.shenanigans.sh
+++ b/.shenanigans.sh
@@ -1,8 +1,8 @@
1# Software list (Void Linux): 1# Software list (Void Linux):
2# void-repo-nonfree void-repo-multilib void-repo-multilib-nonfree 2# void-repo-nonfree void-repo-multilib void-repo-multilib-nonfree
3# file-roller xfce4-screenshooter xsetroot 3# file-roller xfce4-screenshooter xfce4-plugins xsetroot thunar-archive-plugin
4# clang clang-tools-extra vim stow git curl tmux hstr tree make cmake 4# clang clang-tools-extra vim stow git curl tmux hstr tree make cmake
5# entr ack lazygit newsboat htop 5# entr ack lazygit newsboat htop mc
6 6
7# Only run if the script is being sourced (bashrc). 7# Only run if the script is being sourced (bashrc).
8if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then 8if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then
@@ -12,8 +12,12 @@ if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then
12 export VISUAL=vim 12 export VISUAL=vim
13 export EDITOR=vim 13 export EDITOR=vim
14 14
15 git_branch() {
16 git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
17 }
18
15 # Better prompt. 19 # Better prompt.
16 export PS1="\n# \u@\h \T \w\n# " 20 export PS1='\n# \u@\h \T \w $(git_branch)\n# '
17 21
18 # General aliases. 22 # General aliases.
19 alias l='ls -lh' 23 alias l='ls -lh'
@@ -45,3 +49,7 @@ if [[ "${BASH_SOURCE[0]}" != "${0}" ]]; then
45 export HSTR_CONFIG=hicolor 49 export HSTR_CONFIG=hicolor
46 if [[ $- =~ .i. ]]; then bind '"\C-h": "\C-a hstr -- \C-j"'; fi 50 if [[ $- =~ .i. ]]; then bind '"\C-h": "\C-a hstr -- \C-j"'; fi
47fi 51fi
52
53wow() {
54 cd ~/Games/turtlewow && ./wow.sh
55}