Misc. tiny config tweaks
x1phosura x1phosura@x1phosura.zone
Sun, 02 Feb 2025 15:39:49 -0800
4 files changed,
23 insertions(+),
6 deletions(-)
M
.bashrc
→
.bashrc
@@ -280,7 +280,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" + mkdir -p "$1" && cd "$1" } # create executable file containing 'sh' shebang@@ -308,6 +308,12 @@ : # do nothing
else echo "$file_path not found." fi +} + +# Thank you to the following: +# https://lobste.rs/s/2juc8n/reasons_use_your_shell_s_job_control#c_ctjvh7 +fork() { + nohup “$*” > /tmp/nohup & disown } # Note: has a limit of like 10k or something, I forget
M
.config/helix/config.toml
→
.config/helix/config.toml
@@ -6,9 +6,17 @@ #theme = "rasmus"
[editor] mouse = true +bufferline = "multiple" +cursorline = true line-number = "absolute" rulers = [80] color-modes = true +true-color = true + +[editor.lsp] +# [en|dis]able function signature param help pupups +auto-signature-help = true +display-messages = true [editor.soft-wrap] enable = true
M
.config/nvim/init.lua
→
.config/nvim/init.lua
@@ -2,8 +2,8 @@ -- my init.lua
-- x1phosura local vimrc = vim.fn.stdpath("config") .. "/vimrc.vim" -- get path to vimrc --- vim.cmd.source(vimrc) -- old, may break +-- vim.cmd.source(vimrc) -- old, would probably break vim.cmd('source ~/.vimrc') --- require('lsp') -- my lsp setup, TODO fix +-- require('lsp') -- my lsp setup, TODO finish setting up/fix
M
place-dotfiles-base.sh
→
place-dotfiles-base.sh
@@ -2,9 +2,12 @@ #!/bin/sh
# place-dotfiles-base.sh: simple script to symlink my core dotfiles # by x1phosura -dotfiles_root="$HOME"/73h4x/dotfiles/dotfiles-base # where dotfiles live -#dotfiles_root="$PWD" # alternative (for testing) -dest="$HOME" # usually $HOME +dotfiles_root="$HOME"/73h4x/dotfiles/dotfiles-base # where dotfiles live +# '-P|--physical' resolves the full directory, including resolving symlinks. +# NOTE: below, this still results in the full path to the directory. +script_base_dir=$(cd $(dirname $0) && pwd --physical) # this script's directory +#dotfiles_root="${script_base_dir}" # directory where these dotfiles live +dest="$HOME" # usually $HOME die() { echo "$@"; exit 1