1
0
Fork 0
Signed-off-by: jolheiser <john.olheiser@gmail.com>
main
jolheiser 2023-11-30 11:26:03 -06:00
parent 9773a5436f
commit 5cc1593317
Signed by: jolheiser
GPG Key ID: B853ADA5DA7BBF7A
1 changed files with 5 additions and 0 deletions

View File

@ -51,6 +51,11 @@ def clone [
^git fetch upstream
}
def fg [args ...string] {
^rg --ignore-case --color=always --line-number --no-heading $args
| ^fzf --ansi --color 'hl:-1:underline,hl+:-1:underline:reverse' --delimiter ':' --preview "bat --color=always {1} --theme='ctp-mocha' --highlight-line {2}" --preview-window 'up,60%,border-bottom,+{2}+3/3,~3' --bind $"enter:become\(($env.EDITOR) +{2} {1}\)"
}
## Other ##
$env.EDITOR = hx
$env.config = ($env.config | upsert "shell_integration" ("WEZTERM_PANE" not-in $env and "SSH_CLIENT" not-in $env))