aboutsummaryrefslogtreecommitdiff
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
parent3a206881b8e16fc9eddf0f31a908b531f56e2e5c (diff)
downloaddotfiles-63cf241d930f6532b43e72a6317b516173f5e781.tar.gz
Update
-rwxr-xr-x.shenanigans.sh14
-rw-r--r--.vimrc1
2 files changed, 12 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}
diff --git a/.vimrc b/.vimrc
index 4f8cfbe..724858d 100644
--- a/.vimrc
+++ b/.vimrc
@@ -31,3 +31,4 @@ let g:ale_hover_to_floating_preview = 1
31let g:ale_detail_to_floating_preview = 1 31let g:ale_detail_to_floating_preview = 1
32let g:ale_virtualtext_cursor = 0 32let g:ale_virtualtext_cursor = 0
33let g:ale_set_quickfix = 1 33let g:ale_set_quickfix = 1
34let g:ale_linters = { 'c': ['clangd'], 'cpp': ['clangd'] }