mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-04 19:57:37 +00:00
config(fish): add full fish config from live home; portable clipboard + env guards
Keep starship prompt (omp migration rejected). cpy/pst aliases branch on wl-copy vs pbcopy; functions use the aliases. BROWSER/CHROME_EXECUTABLE guarded on binary existence. auto-Niri.fish and cp-appid.fish are linux-only (gated in .chezmoiignore). Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d29c53e630
commit
e26ae266b9
10 files changed
+131
-136
No files matched your search
@@ -19,8 +19,8 @@ set -gx CODE_ROOT $HOME/Developer
|
||||
set -gx GITEA_LOGIN code.sonr.org
|
||||
set -gx GITLAB_HOST git.sonr.org
|
||||
|
||||
set -gx BROWSER /usr/bin/brave-origin-nightly
|
||||
set -gx CHROME_EXECUTABLE /usr/bin/chromium
|
||||
test -x /usr/bin/brave-origin-nightly; and set -gx BROWSER /usr/bin/brave-origin-nightly
|
||||
test -x /usr/bin/chromium; and set -gx CHROME_EXECUTABLE /usr/bin/chromium
|
||||
# Puppeteer / CDP tools — chrome-headless-shell via @puppeteer/browsers,
|
||||
# symlinked from ~/.config/chrome-headless-shell/<version>/ into ~/.local/bin.
|
||||
# NOTE: omp's browser tool prefers detected system Chrome over this env var;
|
||||
|
||||
@@ -13,20 +13,25 @@ alias e.t 'nvim ~/.config/tmux/tmux.conf'
|
||||
alias hx 'helix'
|
||||
|
||||
# Quick directory jumps
|
||||
alias cdc 'cd /home/prad/.config && yazi'
|
||||
alias cdd 'cd /home/prad/Developer && yazi'
|
||||
alias cdk 'cd /home/prad/Documents/Knowledge && obsidian'
|
||||
alias cdl 'cd /home/prad/.local && yazi'
|
||||
alias cds 'cd /home/prad/.local/share/services && ls'
|
||||
alias cdw 'cd /home/prad/Downloads && yazi'
|
||||
alias cdc 'cd ~/.config && yazi'
|
||||
alias cdd 'cd ~/Developer && yazi'
|
||||
alias cdk 'cd ~/Documents/Knowledge && obsidian'
|
||||
alias cdl 'cd ~/.local && yazi'
|
||||
alias cds 'cd ~/.local/share/services && ls'
|
||||
alias cdw 'cd ~/Downloads && yazi'
|
||||
|
||||
# Tools
|
||||
alias dd lazydocker
|
||||
alias gg lazygit
|
||||
alias ff 'exec fish'
|
||||
alias npx bunx
|
||||
alias cpy wl-copy
|
||||
alias pst wl-paste
|
||||
if command -v wl-copy >/dev/null 2>&1
|
||||
alias cpy wl-copy
|
||||
alias pst wl-paste
|
||||
else if command -v pbcopy >/dev/null 2>&1
|
||||
alias cpy pbcopy
|
||||
alias pst pbpaste
|
||||
end
|
||||
alias sm 'sudo micro'
|
||||
# q exits the shell; if this shell was spawned from yazi's own `q` bind
|
||||
# (`shell "$SHELL" --block`), also tell that yazi to quit so exiting
|
||||
|
||||
Reference in new issue
Block a user