1
0
Fork 0
mirror of https://codeberg.org/Mo8it/dotfiles.git synced 2024-10-17 20:52:40 +00:00

Back to fish

This commit is contained in:
Mo 2022-11-19 19:03:32 +01:00
parent a25c49c808
commit 03578f7232
7 changed files with 41 additions and 63 deletions

View file

@ -3,17 +3,13 @@ if status is-interactive
set -g fish_greeting set -g fish_greeting
# Interactive environment variables # Interactive environment variables
set -gx EDITOR ~/bin/nvim/bin/nvim set -gx EDITOR ~/.cargo/bin/hx
# Setup # Setup
## Zoxide ## Zoxide
zoxide init fish | source zoxide init fish | source
## Starship ## Starship
starship init fish | source starship init fish | source
## Atuin
set -gx ATUIN_NOBIND true
atuin init fish | source
bind \cr _atuin_search
# Abbreviations # Abbreviations
## Replacements ## Replacements
@ -37,9 +33,6 @@ if status is-interactive
set -l fedora_image registry.fedoraproject.org/fedora:(rpm -E %fedora) set -l fedora_image registry.fedoraproject.org/fedora:(rpm -E %fedora)
abbr -ag fedora "podman run --pull newer -it --rm $fedora_image" abbr -ag fedora "podman run --pull newer -it --rm $fedora_image"
set -l asciidoctor_image docker.io/asciidoctor/docker-asciidoctor:latest
abbr -ag adoc "podman run --pull newer -it --rm -v (pwd):/documents/:Z $asciidoctor_image"
abbr -ag pps "podman ps --format '{{.Names}}'" abbr -ag pps "podman ps --format '{{.Names}}'"
# Functions # Functions
@ -68,6 +61,10 @@ if status is-interactive
lazygit $argv lazygit $argv
end end
function gu -w gitui
gitui $argv
end
function zola function zola
flatpak run org.getzola.zola $argv flatpak run org.getzola.zola $argv
end end
@ -93,10 +90,6 @@ if status is-interactive
ta $argv priority:H ta $argv priority:H
end end
function v -w task
vit $argv
end
function vp -w task function vp -w task
vit project:$argv[1] $argv[2..] vit project:$argv[1] $argv[2..]
end end

View file

@ -4,7 +4,7 @@ scroll_buffer_size 100000
copy_on_select true copy_on_select true
default_shell "/home/mo/.cargo/bin/nu" default_shell "/usr/bin/fish"
scrollback_editor "/home/mo/bin/nvim/bin/nvim" scrollback_editor "/home/mo/bin/nvim/bin/nvim"
keybinds clear-defaults=true { keybinds clear-defaults=true {

View file

@ -10,26 +10,29 @@ layout {
tab name="lazygit" { tab name="lazygit" {
pane { pane {
command "nu" command "fish"
args "-e" "lazygit" args "-c" "lazygit"
close_on_exit true
} }
} }
tab name="hx" focus=true { tab name="hx" focus=true {
pane { pane {
command "nu" command "fish"
args "-e" "hx" args "-c" "hx"
close_on_exit true
} }
} }
tab name="run" { tab name="run" {
pane { pane {
command "nu" command "fish"
args "-e" "poetry run ./run.py" args "-c" "poetry run ./run.py"
} }
} }
tab name="tasks" { tab name="tasks" {
pane { pane {
command "nu" command "fish"
args "-e" "vp advlabdb" args "-c" "vp advlabdb"
close_on_exit true
} }
} }
} }

View file

@ -10,21 +10,24 @@ layout {
tab name="lazygit" { tab name="lazygit" {
pane { pane {
command "nu" command "fish"
args "-e" "lazygit" args "-c" "lazygit"
close_on_exit true
} }
} }
tab name="hx" focus=true { tab name="hx" focus=true {
pane { pane {
cwd "src" cwd "src"
command "nu" command "fish"
args "-e" "hx" args "-c" "hx"
close_on_exit true
} }
} }
tab name="mdbook" { tab name="mdbook" {
pane { pane {
command "nu" command "fish"
args "-e" "mdbook serve" args "-c" "mdbook serve"
close_on_exit true
} }
} }
} }

View file

@ -10,11 +10,15 @@ layout {
tab name="jupyterlab" focus=true { tab name="jupyterlab" focus=true {
pane { pane {
command "nu" command "fish"
args "-e" "./container.nu" args "-c" "./container.fish"
close_on_exit true
} }
} }
tab name="shell" { tab name="shell" {
pane pane {
command "fish"
close_on_exit true
}
} }
} }

View file

@ -1,29 +0,0 @@
layout {
default_tab_template {
children
pane size=1 borderless=true {
plugin location="zellij:compact-bar"
}
}
cwd "/home/mo/code/ReCo.jl"
tab name="lazygit" {
pane {
command "nu"
args "-e" "lazygit"
}
}
tab name="hx" focus=true {
pane {
command "nu"
args "-e" "hx"
}
}
tab name="run" {
pane {
command "nu"
args "-e" "julia scripts/update.jl"
}
}
}

View file

@ -1,19 +1,23 @@
layout { layout {
pane { pane {
command "nu" command "fish"
args "-c" "~/.scripts/update.py rpm-ostree" args "-c" "~/.scripts/update.py rpm-ostree"
close_on_exit true
} }
pane focus=true { pane focus=true {
command "nu" command "fish"
args "-c" "~/.scripts/update.py flatpak" args "-c" "~/.scripts/update.py flatpak"
close_on_exit true
} }
pane { pane {
command "nu" command "fish"
args "-c" "~/.scripts/update.py cargo" args "-c" "~/.scripts/update.py cargo"
close_on_exit true
} }
pane { pane {
cwd "/home/mo/servers/ansible" cwd "/home/mo/servers/ansible"
command "nu" command "fish"
args "-c" "ansible-playbook playbooks/update.yml; read -P Enter" args "-c" "ansible-playbook playbooks/update.yml; read -P Enter"
close_on_exit true
} }
} }