dotfiles bugabingas dorkfiles
owned by bugabinga
README Source History Refs Reviews Compare Notes Search Review guide CI runs nushell: adjust aliases
f0df0325715d864cc8122c6675ee3062051ccbe5
Oliver Jan Krylow <oliver@bugabinga.net > · 27 Mar 2024
unsigned
Browse files Compare with HEAD
Changed files (1) Diff layout Auto Unified Split
nushell/modules/aliases.nu Modified +3 / −5 text lines
2 2 export alias show = bat
export alias show = bat
3 3 export def list [] { ls --all --long --du --mime-type | where type == dir | append (ls --all --long --du --mime-type | where type != dir) }
export def list [] { ls --all --long --du --mime-type | where type == dir | append (ls --all --long --du --mime-type | where type != dir) }
4 - export alias web = firefox
4 + export alias walk = yazi
5 + export alias browse = firefox
5 6 export alias code = nvim
export alias code = nvim
6 7 export alias edit = nvim --clean
export alias edit = nvim --clean
11 12 export alias archive = wget -mpck --html-extension --user-agent="" -e robots=off --wait 1 -P .
export alias archive = wget -mpck --html-extension --user-agent="" -e robots=off --wait 1 -P .
13 15 def --env workspace [] {
def --env workspace [] {
14 16 fd --type directory --max-depth 1 . $env.WORKSPACE | fzf --ansi --preview 'mdcat {}README.md' --preview-window 'up:69%,border-bottom' | cd $in
fd --type directory --max-depth 1 . $env.WORKSPACE | fzf --ansi --preview 'mdcat {}README.md' --preview-window 'up:69%,border-bottom' | cd $in
16 18 export alias w = workspace
export alias w = workspace
18 - export def --env lk [] {
22 20 def open-editor-with-content-search [ initial_query:string = '' ] {
def open-editor-with-content-search [ initial_query:string = '' ] {
23 21 rg --color=always --line-number --no-heading --smart-case $initial_query | fzf --ansi --delimiter : --preview 'bat --color=always {1} --highlight-line {2}' --color "hl:-1:underline,hl+:-1:underline:reverse" --preview-window 'up,60%,border-bottom,+{2}+3/3,~3' | parse '{file}:{number}:{line}' | each { nvim -c $in.number -c $"?\\V($in.line | str trim )" $in.file }
rg --color=always --line-number --no-heading --smart-case $initial_query | fzf --ansi --delimiter : --preview 'bat --color=always {1} --highlight-line {2}' --color "hl:-1:underline,hl+:-1:underline:reverse" --preview-window 'up,60%,border-bottom,+{2}+3/3,~3' | parse '{file}:{number}:{line}' | each { nvim -c $in.number -c $"?\\V($in.line | str trim )" $in.file }