Initial commit
This commit is contained in:
41
conf.d/_tide_init.fish
Normal file
41
conf.d/_tide_init.fish
Normal file
@@ -0,0 +1,41 @@
|
||||
function _tide_init_install --on-event _tide_init_install
|
||||
set -U VIRTUAL_ENV_DISABLE_PROMPT true
|
||||
|
||||
source (functions --details _tide_sub_configure)
|
||||
_load_config lean
|
||||
_tide_finish
|
||||
|
||||
if status is-interactive
|
||||
tide bug-report --check || sleep 4
|
||||
|
||||
if contains ilancosman/tide (string lower $_fisher_plugins)
|
||||
set_color bryellow
|
||||
echo "ilancosman/tide is a development branch. Please install from a release tag:"
|
||||
echo -ns "fisher install ilancosman/tide@v5" | fish_indent --ansi
|
||||
sleep 3
|
||||
end
|
||||
|
||||
switch (read --prompt-str="Configure tide prompt? [Y/n] " | string lower)
|
||||
case y ye yes ''
|
||||
tide configure
|
||||
case '*'
|
||||
echo -s \n 'Run ' (echo -ns "tide configure" | fish_indent --ansi) ' to customize your prompt.'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function _tide_init_update --on-event _tide_init_update
|
||||
# Warn users who install from main branch
|
||||
if contains ilancosman/tide (string lower $_fisher_plugins)
|
||||
set_color bryellow
|
||||
echo "ilancosman/tide is a development branch. Please install from a release tag:"
|
||||
echo -ns "fisher install ilancosman/tide@v5" | fish_indent --ansi
|
||||
sleep 3
|
||||
end
|
||||
end
|
||||
|
||||
function _tide_init_uninstall --on-event _tide_init_uninstall
|
||||
set -e VIRTUAL_ENV_DISABLE_PROMPT
|
||||
set -e (set -U --names | string match --entire -r '^_?tide')
|
||||
functions --erase (functions --all | string match --entire -r '^_?tide')
|
||||
end
|
1
conf.d/aliases.fish
Normal file
1
conf.d/aliases.fish
Normal file
@@ -0,0 +1 @@
|
||||
alias vim nvim
|
1
conf.d/android.fish
Normal file
1
conf.d/android.fish
Normal file
@@ -0,0 +1 @@
|
||||
fish_add_path $HOME/Android/Sdk/platform-tools
|
1
conf.d/atuin.fish
Normal file
1
conf.d/atuin.fish
Normal file
@@ -0,0 +1 @@
|
||||
status --is-interactive; and atuin init fish | source
|
2
conf.d/bat.fish
Normal file
2
conf.d/bat.fish
Normal file
@@ -0,0 +1,2 @@
|
||||
alias cat bat
|
||||
set -gx BAT_THEME OneHalfDark
|
2
conf.d/binenv.fish
Normal file
2
conf.d/binenv.fish
Normal file
@@ -0,0 +1,2 @@
|
||||
fish_add_path $HOME/.binenv
|
||||
binenv completion fish | source
|
85
conf.d/breeze.fish
Normal file
85
conf.d/breeze.fish
Normal file
@@ -0,0 +1,85 @@
|
||||
abbr -a cdgtop 'cd (git rev-parse --show-toplevel)'
|
||||
abbr -a g 'git'
|
||||
abbr -a gaa 'git add --all'
|
||||
abbr -a gap 'git add -pu'
|
||||
abbr -a gash 'git stash'
|
||||
abbr -a gasha 'git stash apply'
|
||||
abbr -a gashl 'git stash list'
|
||||
abbr -a gashp 'git stash pop'
|
||||
abbr -a gashu 'git stash --include-untracked'
|
||||
abbr -a gau 'git add -u'
|
||||
abbr -a gc 'git commit'
|
||||
abbr -a gce 'git clean'
|
||||
abbr -a gcef 'git clean -fd'
|
||||
abbr -a gcl 'git clone'
|
||||
abbr -a gcmsg 'git commit -m'
|
||||
abbr -a gdf 'git diff --'
|
||||
abbr -a gdnw 'git diff -w --'
|
||||
abbr -a gdw 'git diff --word-diff'
|
||||
abbr -a gf 'git fetch'
|
||||
abbr -a gfa 'git fetch --all'
|
||||
abbr -a gfr 'git fetch; and git rebase'
|
||||
abbr -a glg 'git log --graph --max-count=5'
|
||||
abbr -a gm 'git merge'
|
||||
abbr -a gmff 'git merge --ff'
|
||||
abbr -a gmnff 'git merge --no-ff'
|
||||
abbr -a gopen 'git config --get remote.origin.url | xargs open'
|
||||
abbr -a gpl 'git pull'
|
||||
abbr -a gplr 'git pull --rebase'
|
||||
abbr -a gps 'git push'
|
||||
abbr -a gpsf 'git push --force-with-lease'
|
||||
abbr -a gr 'git remote -v'
|
||||
abbr -a grb 'git rebase'
|
||||
abbr -a grbi 'git rebase -i'
|
||||
abbr -a grs 'git reset --'
|
||||
abbr -a grsh 'git reset --hard'
|
||||
abbr -a grsl 'git reset HEAD~'
|
||||
abbr -a gsh 'git show'
|
||||
abbr -a gt 'git tag'
|
||||
abbr -a gtop 'git rev-parse --show-toplevel'
|
||||
abbr -a gurl 'git config --get remote.origin.url'
|
||||
abbr -a runsv 'python -m SimpleHTTPServer'
|
||||
|
||||
function _breeze_uninstall -e breeze_uninstall
|
||||
abbr -e cdgtop
|
||||
abbr -e g
|
||||
abbr -e gaa
|
||||
abbr -e gap
|
||||
abbr -e gash
|
||||
abbr -e gasha
|
||||
abbr -e gashl
|
||||
abbr -e gashp
|
||||
abbr -e gashu
|
||||
abbr -e gau
|
||||
abbr -e gc
|
||||
abbr -e gce
|
||||
abbr -e gcef
|
||||
abbr -e gcl
|
||||
abbr -e gcmsg
|
||||
abbr -e gdf
|
||||
abbr -e gdnw
|
||||
abbr -e gdw
|
||||
abbr -e gf
|
||||
abbr -e gfa
|
||||
abbr -e gfr
|
||||
abbr -e glg
|
||||
abbr -e gm
|
||||
abbr -e gmff
|
||||
abbr -e gmnff
|
||||
abbr -e gopen
|
||||
abbr -e gpl
|
||||
abbr -e gplr
|
||||
abbr -e gps
|
||||
abbr -e gpsf
|
||||
abbr -e gr
|
||||
abbr -e grb
|
||||
abbr -e grbi
|
||||
abbr -e grs
|
||||
abbr -e grsh
|
||||
abbr -e grsl
|
||||
abbr -e gsh
|
||||
abbr -e gt
|
||||
abbr -e gtop
|
||||
abbr -e gurl
|
||||
abbr -e runsv
|
||||
end
|
2
conf.d/deno.fish
Normal file
2
conf.d/deno.fish
Normal file
@@ -0,0 +1,2 @@
|
||||
set -gx DENO_INSTALL "$HOME/.deno"
|
||||
fish_add_path $DENO_INSTALL/bin
|
5
conf.d/dircolors.fish
Normal file
5
conf.d/dircolors.fish
Normal file
@@ -0,0 +1,5 @@
|
||||
set NORD_DIR_COLORS_FILE $HOME/.local/nord-dircolors/dir_colors
|
||||
|
||||
if test -f $NORD_DIR_COLORS_FILE
|
||||
eval (dircolors -c $NORD_DIR_COLORS_FILE)
|
||||
end
|
2
conf.d/direnv.fish
Normal file
2
conf.d/direnv.fish
Normal file
@@ -0,0 +1,2 @@
|
||||
direnv hook fish | source
|
||||
set -g direnv_fish_mode disable_arrow
|
1
conf.d/eza.fish
Normal file
1
conf.d/eza.fish
Normal file
@@ -0,0 +1 @@
|
||||
alias ls eza
|
1
conf.d/flutter.fish
Normal file
1
conf.d/flutter.fish
Normal file
@@ -0,0 +1 @@
|
||||
fish_add_path $HOME/.local/flutter/bin
|
5
conf.d/fzf.fish
Normal file
5
conf.d/fzf.fish
Normal file
@@ -0,0 +1,5 @@
|
||||
source /usr/share/fzf/shell/key-bindings.fish
|
||||
|
||||
set -gx FZF_DEFAULT_COMMAND 'fd --type file . $dir'
|
||||
set -gx FZF_CTRL_T_COMMAND $FZF_DEFAULT_COMMAND
|
||||
set -gx FZF_ALT_C_COMMAND 'fd --type directory . $dir'
|
4
conf.d/git.fish
Normal file
4
conf.d/git.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
# Why doesn’t breeze provide this?
|
||||
alias grc 'git rebase --continue'
|
||||
|
||||
bind \eg __show_git_status
|
2
conf.d/go.fish
Normal file
2
conf.d/go.fish
Normal file
@@ -0,0 +1,2 @@
|
||||
set -gx GOPATH $HOME/.local/go
|
||||
fish_add_path $HOME/.local/go/bin
|
8
conf.d/gpg-agent.fish
Normal file
8
conf.d/gpg-agent.fish
Normal file
@@ -0,0 +1,8 @@
|
||||
# Gnome Keyring can (and will) mess up SSH_AUTH_SOCK, but we can’t simply overwrite it, because auth forwarding mangles
|
||||
# it, too
|
||||
if not set -q SSH_AUTH_SOCK or string match -q "$HOME/.cache/keyring-*/ssh" $SSH_AUTH_SOCK
|
||||
set -gx SSH_AUTH_SOCK $XDG_RUNTIME_DIR/gnupg/S.gpg-agent.ssh
|
||||
end
|
||||
|
||||
set -gx GPG_TTY (tty)
|
||||
#gpg-connect-agent updatestartuptty /bye > /dev/null
|
4
conf.d/node.fish
Normal file
4
conf.d/node.fish
Normal file
@@ -0,0 +1,4 @@
|
||||
set -gx NPM_PACKAGES $HOME/.local/node
|
||||
fish_add_path $HOME/.local/npm-packages/bin
|
||||
fish_add_path $HOME/.local/node/bin
|
||||
set -gx MANPATH $HOME/.local/node/share/man:(manpath -q)
|
24
conf.d/old-wsl-sockets.fish
Normal file
24
conf.d/old-wsl-sockets.fish
Normal file
@@ -0,0 +1,24 @@
|
||||
if test "$NEED_WSL_SOCAT" = "1"
|
||||
# WSL Socket forwarding
|
||||
if begin
|
||||
status is-interactive; and string sub (uname -r) WSL >/dev/null
|
||||
end
|
||||
# Commands to run in interactive sessions can go here
|
||||
|
||||
# Channel Pageant to WSL2
|
||||
set -x SSH_AUTH_SOCK "$HOME/.ssh/agent.sock"
|
||||
if not ss -a | grep -q "$SSH_AUTH_SOCK"
|
||||
rm -f "$SSH_AUTH_SOCK"
|
||||
set wsl2_ssh_pageant_bin "$HOME/.ssh/wsl2-ssh-pageant.exe"
|
||||
if test -x "$wsl2_ssh_pageant_bin"
|
||||
setsid nohup socat UNIX-LISTEN:"$SSH_AUTH_SOCK,fork" EXEC:"$wsl2_ssh_pageant_bin" >/dev/null 2>&1 &
|
||||
else
|
||||
echo >&2 "WARNING: $wsl2_ssh_pageant_bin is not executable."
|
||||
end
|
||||
set --erase wsl2_ssh_pageant_bin
|
||||
end
|
||||
# machina
|
||||
else if not set -q SSH_AUTH_SOCK or string match -q "$HOME/.cache/keyring-*/ssh" $SSH_AUTH_SOCK
|
||||
set -gx SSH_AUTH_SOCK {$XDG_RUNTIME_DIR}gnupg/S.gpg-agent.ssh
|
||||
end
|
||||
end
|
1
conf.d/rust.fish
Normal file
1
conf.d/rust.fish
Normal file
@@ -0,0 +1 @@
|
||||
fish_add_path $HOME/.cargo/bin
|
1
conf.d/sway.fish
Normal file
1
conf.d/sway.fish
Normal file
@@ -0,0 +1 @@
|
||||
set -gx SWAY_CURSOR_THEME Adwaita
|
6
conf.d/tmux.fish
Normal file
6
conf.d/tmux.fish
Normal file
@@ -0,0 +1,6 @@
|
||||
# If running in interactive mode and not within
|
||||
# TMUX, start TMUX instead. `tmux-default` is a
|
||||
# shell script within PATH that either connects to
|
||||
# the "default" session, or creates one if it
|
||||
# doesn’t exst yet
|
||||
#status --is-interactive; and test $TERM != "screen" -a $TERM != "screen-256color"; and exec tmux-default
|
1
conf.d/vagrant.fish
Normal file
1
conf.d/vagrant.fish
Normal file
@@ -0,0 +1 @@
|
||||
set -gx VAGRANT_DEFAULT_PROVIDER libvirt
|
1
conf.d/watch-prefix.fish
Normal file
1
conf.d/watch-prefix.fish
Normal file
@@ -0,0 +1 @@
|
||||
bind --preset \ew 'fish_commandline_prepend watch'
|
1
conf.d/zoxide.fish
Normal file
1
conf.d/zoxide.fish
Normal file
@@ -0,0 +1 @@
|
||||
zoxide init fish | source
|
Reference in New Issue
Block a user