all repos — dotfiles-base @ b76e1c4c255d52eac98e1c3d5a26395365cbde61

base important configs that can safely be used almost anywhere

Misc. tweaks once again
x1phosura x1phosura@x1phosura.zone
Tue, 12 Mar 2024 14:06:27 -0700
commit

b76e1c4c255d52eac98e1c3d5a26395365cbde61

parent

52ebf87c49ee0b15e6733b593a45b6cde4361972

3 files changed, 5 insertions(+), 3 deletions(-)

jump to
M .bash_profile.bash_profile

@@ -10,7 +10,7 @@ # exec startx

#fi # rust -. "$HOME/.cargo/env" +[ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env" # opam configuration test -r /home/x1phosura/.opam/opam-init/init.sh && . /home/x1phosura/.opam/opam-init/init.sh > /dev/null 2> /dev/null || true
M .bashrc.bashrc

@@ -259,6 +259,7 @@ }

# STILL has one edge case (if argument contains '..' AND goes through symlink) mkcd() { + [ -z "$1" ] && return 1 case "$1" in /*) :;; *) set -- "./$1";; esac # for weird directories "-xx/" mkdir "$1" && cd "$1" }

@@ -281,6 +282,7 @@ # pick file path with fzf, open in $EDITOR

fzvim() { file_path="$(fzf)" if [ -e "$file_path" ]; then + echo "Editing $file_path..." "$EDITOR" "$file_path" elif [ "$file_path" = "" ]; then # no entries chosen from fzf : # do nothing

@@ -371,7 +373,7 @@ done

fi fi -#complete -cf sudo # so sudo actually has tab autocompletion +complete -cf sudo # so sudo actually has tab autocompletion bind 'set completion-ignore-case on' # case-insensitive tab autocompletion [ -f "$HOME/.cargo/env" ] && source "$HOME/.cargo/env" # if not in .bash_profile
M .config/nvim/vimrc.vim.config/nvim/vimrc.vim

@@ -113,7 +113,7 @@

" turns off tabs-to-spaces conversion for makefiles au FileType make setlocal shiftwidth=8 softtabstop=8 tabstop=8 noexpandtab - au FileType c setlocal shiftwidth=8 softtabstop=8 tabstop=8 noexpandtab + au FileType c,go setlocal shiftwidth=8 softtabstop=8 tabstop=8 noexpandtab au FileType sh setlocal shiftwidth=4 softtabstop=4 tabstop=4 expandtab au BufRead,BufNewFile *.rkt,*.rktl set filetype=scheme