diff --git a/.shenanigans.sh b/.shenanigans.sh index d537ad24ad5c72838e7e4ca50b47e4f7deaebdb1..ebb27de473add49f95c0a8b9ae4c4c26cd2d22e3 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 @@ export TERM=xterm-256color 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 @@ bind '"\e[B": history-search-forward' export HSTR_CONFIG=hicolor if [[ $- =~ .i. ]]; then bind '"\C-h": "\C-a hstr -- \C-j"'; fi fi + +wow() { + cd ~/Games/turtlewow && ./wow.sh +} diff --git a/.vimrc b/.vimrc index 4f8cfbe2e7ce2465bf600262d9b64b3ef4e7278a..724858dcfc2b54cca6933aab7c308ddbd369a830 100644 --- a/.vimrc +++ b/.vimrc @@ -31,3 +31,4 @@ let g:ale_hover_to_floating_preview = 1 let g:ale_detail_to_floating_preview = 1 let g:ale_virtualtext_cursor = 0 let g:ale_set_quickfix = 1 +let g:ale_linters = { 'c': ['clangd'], 'cpp': ['clangd'] }