xonecas.io
56101
Df

dotfiles / commit ad7396c

fix: move to node directly instead of bun

Nothing against Bun, I actually really like it, but I keep getting into
messy installs in this linux box. So now I just get the nodejs package
from cachy/extra

xonecas2026-08-18 ad7396c1110d53b1ff44e4ed5669c37774def5b5 parent a797473

2 files changed

bash/bashrc+2−48
@@ -12,13 +12,8 @@ alias gp='git pull --rebase'
1212 alias gpo='git push origin'
1313 alias nv='nvim'
1414
15-eval "$(fzf --bash)"
16-
1715 export PATH=$PATH:~/.local/bin
18-export BUN_INSTALL="$HOME/.bun"
19-export PATH="$BUN_INSTALL/bin:$PATH"
2016 export PATH="$(go env GOPATH)/bin:$PATH"
21-export PATH=/home/xonecas/.opencode/bin:$PATH
2217
2318 # Credentials loaded from ~/.config/keys.json
2419 if [ -f "$HOME/.config/keys.json" ]; then
@@ -50,46 +45,5 @@ greet() {
5045 # Uncomment to get a nice greeting.
5146 greet
5247
53-# From: https://code.mendhak.com/simple-bash-prompt-for-developers-ps1-git/
54-function parse_git_dirty {
55- [[ $(git status --porcelain 2> /dev/null) ]] && echo "*"
56-}
57-function parse_git_branch {
58- git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/ (\1$(parse_git_dirty))/"
59-}
60-
61-# Command timer via DEBUG trap
62-trap '__cmd_timer=${__cmd_timer:-$SECONDS}' DEBUG
63-
64-__prompt_command() {
65- local exit_code=$?
66- local duration=$(( SECONDS - ${__cmd_timer:-$SECONDS} ))
67- unset __cmd_timer
68-
69- # Format duration
70- local dur_str
71- if (( duration >= 3600 )); then
72- dur_str="$((duration / 3600))h$((duration % 3600 / 60))m$((duration % 60))s"
73- elif (( duration >= 60 )); then
74- dur_str="$((duration / 60))m$((duration % 60))s"
75- else
76- dur_str="${duration}s"
77- fi
78-
79- # Exit status: green for 0, red for non-zero
80- local status
81- if (( exit_code == 0 )); then
82- status="\[\033[32m\]${exit_code}\[\033[00m\]"
83- else
84- status="\[\033[31m\]${exit_code}\[\033[00m\]"
85- fi
86-
87- local git_info
88- git_info="$(parse_git_branch)"
89-
90- # Line 1: time, exit status, duration, cwd, git branch
91- # Line 2: prompt
92- PS1="\t ${status} \[\033[36m\]${dur_str}\[\033[00m\] \[\033[32m\]\w\[\033[33m\]${git_info}\[\033[00m\]\n\$ "
93-}
94-
95-PROMPT_COMMAND=__prompt_command
48+eval "$(fzf --bash)"
49+eval "$(starship init bash)"
nvim/init.lua+4−0
@@ -254,4 +254,8 @@ keymap('n', 'k', 'gk', { noremap = true })
254254 vim.api.nvim_create_user_command('Q', 'q', {})
255255 vim.api.nvim_create_user_command('W', 'w', {})
256256
257+-- Shortcut to open the inline AI prompt in visual mode
258+keymap('x', '<leader>a', ':Ai<CR>', opts)
259+
260+-- Set a nice theme?
257261 vim.cmd.colorscheme('retrobox')