mirror of
https://codeberg.org/Mo8it/dotfiles.git
synced 2024-12-04 23:40:32 +00:00
Compare commits
12 commits
a4867e19a0
...
da96254723
Author | SHA1 | Date | |
---|---|---|---|
da96254723 | |||
6a69b28e1d | |||
25185e7bc1 | |||
fd9c8554ea | |||
809b2d7422 | |||
637cce64d7 | |||
e9936dd745 | |||
27e3aab5de | |||
728fe4b53b | |||
1004207a76 | |||
2c24181734 | |||
80622de1a2 |
7 changed files with 59 additions and 96 deletions
|
@ -1,21 +0,0 @@
|
|||
# .bash_profile
|
||||
|
||||
# Get the aliases and functions
|
||||
if [ -f ~/.bashrc ]; then
|
||||
. ~/.bashrc
|
||||
fi
|
||||
|
||||
# User specific environment and startup programs
|
||||
|
||||
export PATH="$HOME/.npm-global/bin:$PATH:$HOME/bin/nvim/bin"
|
||||
. "$HOME/.cargo/env"
|
||||
|
||||
# >>> juliaup initialize >>>
|
||||
|
||||
# !! Contents within this block are managed by juliaup !!
|
||||
|
||||
case ":$PATH:" in *:/var/home/mo/.julia/juliaup/bin:*);; *)
|
||||
export PATH=/var/home/mo/.julia/juliaup/bin${PATH:+:${PATH}} ;;
|
||||
esac
|
||||
|
||||
# <<< juliaup initialize <<<
|
|
@ -36,7 +36,7 @@ font:
|
|||
# `/bin/fish`. Entries in `shell.args` are passed unmodified as arguments to the
|
||||
# shell.
|
||||
shell:
|
||||
program: /home/mo/.cargo/bin/zellij
|
||||
program: zellij
|
||||
|
||||
# Offer IPC using `alacritty msg` (unix only)
|
||||
ipc_socket: false
|
||||
|
|
|
@ -13,7 +13,7 @@ if status is-interactive
|
|||
|
||||
# Abbreviations
|
||||
## Replacements
|
||||
abbr -ag rm trash
|
||||
abbr -ag rm "trash"
|
||||
|
||||
## Safety options
|
||||
abbr -ag cp "cp -i"
|
||||
|
@ -21,73 +21,25 @@ if status is-interactive
|
|||
abbr -ag rmr "rm -r"
|
||||
|
||||
## Default options
|
||||
set -g rsync "rsync -avhL --partial --zc=zstd --zl=8 --no-i-r --info=progress2"
|
||||
abbr -ag rsync $rsync
|
||||
set -g rsync "rsync -avhL --partial --info=progress2 --no-i-r --zc=zstd --zl=9"
|
||||
abbr -ag rsync "$rsync"
|
||||
|
||||
## Podman
|
||||
set -l sagemath_image docker.io/sagemath/sagemath:latest
|
||||
abbr -ag sage "podman run --pull newer -it --rm $sagemath_image"
|
||||
abbr -ag sage-jupyter "podman run --pull newer -it --rm -p8888:8888 $sagemath_image sage-jupyter"
|
||||
abbr -ag sage "podman run --pull newer -it --rm docker.io/sagemath/sagemath:latest"
|
||||
|
||||
set -l fedora_image registry.fedoraproject.org/fedora:(rpm -E %fedora)
|
||||
abbr -ag fedora "podman run --pull newer -it --rm $fedora_image"
|
||||
|
||||
abbr -ag pps "podman ps --format '{{.Names}}'"
|
||||
|
||||
# Functions
|
||||
## Replacements
|
||||
function cd -w z
|
||||
z $argv
|
||||
end
|
||||
|
||||
function ls -w exa
|
||||
exa --icons --group-directories-first --time-style long-iso $argv
|
||||
end
|
||||
|
||||
function ll -w exa
|
||||
ls -l $argv
|
||||
end
|
||||
|
||||
function cat -w bat
|
||||
bat $argv
|
||||
end
|
||||
|
||||
function lg -w lazygit
|
||||
lazygit $argv
|
||||
end
|
||||
|
||||
function gu -w gitui
|
||||
gitui $argv
|
||||
end
|
||||
|
||||
function zola
|
||||
flatpak run org.getzola.zola $argv
|
||||
end
|
||||
|
||||
function julia
|
||||
JULIA_NUM_THREADS=16 ~/.julia/juliaup/bin/julia $argv
|
||||
end
|
||||
|
||||
## Taskwarrior
|
||||
function ta -w task -d "Add no priority task"
|
||||
task add project:$argv[1] $argv[2..]
|
||||
end
|
||||
|
||||
function tal -w task -d "Add low priority task"
|
||||
ta $argv priority:L
|
||||
end
|
||||
|
||||
function tam -w task -d "Add medium priority task"
|
||||
ta $argv priority:M
|
||||
end
|
||||
|
||||
function tah -w task -d "Add high priority task"
|
||||
ta $argv priority:H
|
||||
end
|
||||
|
||||
function vp -w task
|
||||
vit project:$argv[1] $argv[2..]
|
||||
end
|
||||
# Aliases
|
||||
alias cd "z"
|
||||
alias ls "exa --icons --group-directories-first --time-style long-iso --no-filesize --git"
|
||||
alias ll "ls -l"
|
||||
alias cat "bat"
|
||||
alias gu "gitui"
|
||||
alias zola "flatpak run org.getzola.zola"
|
||||
alias julia "JULIA_NUM_THREADS=16 ~/.juliaup/bin/julia"
|
||||
|
||||
# Private config
|
||||
set -l private_config ~/.config/fish/private_config.fish
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
[language-server.rust-analyzer.config]
|
||||
check.command = "clippy"
|
||||
cargo.features = "all"
|
||||
|
||||
[[language]]
|
||||
name = "rust"
|
||||
roots = ["Cargo.toml"]
|
||||
[language.auto-pairs]
|
||||
'(' = ')'
|
||||
'{' = '}'
|
||||
|
@ -25,27 +25,27 @@ auto-format = true
|
|||
|
||||
[[language]]
|
||||
name = "markdown"
|
||||
formatter = { command = "dprint", args = ["fmt", "-c", "/home/mo/.config/dprint.json", "--stdin", "md"] }
|
||||
formatter = { command = "dprint", args = ["fmt", "-c", "/home/mo8it/.config/dprint.json", "--stdin", "md"] }
|
||||
auto-format = true
|
||||
|
||||
[[language]]
|
||||
name = "json"
|
||||
formatter = { command = "dprint", args = ["fmt", "-c", "/home/mo/.config/dprint.json", "--stdin", "json"] }
|
||||
formatter = { command = "dprint", args = ["fmt", "-c", "/home/mo8it/.config/dprint.json", "--stdin", "json"] }
|
||||
auto-format = true
|
||||
|
||||
[[language]]
|
||||
name = "javascript"
|
||||
formatter = { command = "dprint", args = ["fmt", "-c", "/home/mo/.config/dprint.json", "--stdin", "js"] }
|
||||
formatter = { command = "dprint", args = ["fmt", "-c", "/home/mo8it/.config/dprint.json", "--stdin", "js"] }
|
||||
auto-format = true
|
||||
|
||||
[[language]]
|
||||
name = "toml"
|
||||
formatter = { command = "dprint", args = ["fmt", "-c", "/home/mo/.config/dprint.json", "--stdin", "toml"] }
|
||||
formatter = { command = "dprint", args = ["fmt", "-c", "/home/mo8it/.config/dprint.json", "--stdin", "toml"] }
|
||||
auto-format = true
|
||||
|
||||
[[language]]
|
||||
name = "html"
|
||||
formatter = { command = "djlint", args = ["--reformat", "--quiet", "--configuration", "/home/mo/.config/djlintrc.json", "-"] }
|
||||
formatter = { command = "djlint", args = ["--reformat", "--quiet", "--configuration", "/home/mo8it/.config/djlintrc.json", "-"] }
|
||||
auto-format = true
|
||||
# language-server = { language-id = "html", command = "tailwindcss-language-server", args = ["--stdio"] }
|
||||
# roots = ["tailwind.config.js"]
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
scroll_buffer_size 10000
|
||||
scroll_buffer_size 100000
|
||||
|
||||
mouse_mode false
|
||||
|
||||
default_shell "/usr/bin/fish"
|
||||
scrollback_editor "/home/mo/.cargo/bin/hx"
|
||||
scrollback_editor "hx"
|
||||
|
||||
theme "dracula"
|
||||
|
||||
|
@ -24,12 +24,18 @@ keybinds clear-defaults=true {
|
|||
bind "Alt o" { GoToNextTab; }
|
||||
bind "Alt i" { GoToPreviousTab; }
|
||||
bind "Alt X" { CloseTab; }
|
||||
bind "Alt J" { ScrollDown; }
|
||||
bind "Alt K" { ScrollUp; }
|
||||
bind "Alt L" { PageScrollDown; }
|
||||
bind "Alt H" { PageScrollUp; }
|
||||
}
|
||||
locked {
|
||||
bind "Alt L" { SwitchToMode "normal"; }
|
||||
}
|
||||
pane {
|
||||
shared_except "normal" "locked" {
|
||||
bind "Esc" { SwitchToMode "normal"; }
|
||||
}
|
||||
pane {
|
||||
bind "h" { MoveFocus "Left"; }
|
||||
bind "l" { MoveFocus "Right"; }
|
||||
bind "j" { MoveFocus "Down"; }
|
||||
|
@ -42,21 +48,18 @@ keybinds clear-defaults=true {
|
|||
bind "e" { TogglePaneEmbedOrFloating; SwitchToMode "normal"; }
|
||||
}
|
||||
resize {
|
||||
bind "Esc" { SwitchToMode "normal"; }
|
||||
bind "h" { Resize "Left"; }
|
||||
bind "j" { Resize "Down"; }
|
||||
bind "k" { Resize "Up"; }
|
||||
bind "l" { Resize "Right"; }
|
||||
}
|
||||
move {
|
||||
bind "Esc" { SwitchToMode "normal"; }
|
||||
bind "h" { MovePane "Left"; }
|
||||
bind "j" { MovePane "Down"; }
|
||||
bind "k" { MovePane "Up"; }
|
||||
bind "l" { MovePane "Right"; }
|
||||
}
|
||||
scroll {
|
||||
bind "Esc" { SwitchToMode "normal"; }
|
||||
bind "e" { EditScrollback; SwitchToMode "normal"; }
|
||||
bind "j" { ScrollDown; }
|
||||
bind "k" { ScrollUp; }
|
||||
|
|
30
.config/zellij/layouts/collective-score.kdl
Normal file
30
.config/zellij/layouts/collective-score.kdl
Normal file
|
@ -0,0 +1,30 @@
|
|||
layout {
|
||||
default_tab_template {
|
||||
children
|
||||
pane size=1 borderless=true {
|
||||
plugin location="zellij:compact-bar"
|
||||
}
|
||||
}
|
||||
|
||||
cwd "/home/mo/code/collective-score"
|
||||
|
||||
tab name="hx" split_direction="vertical" focus=true {
|
||||
pane {
|
||||
focus true
|
||||
command "fish"
|
||||
args "-C" "hx"
|
||||
close_on_exit true
|
||||
}
|
||||
pane {
|
||||
command "bacon"
|
||||
}
|
||||
}
|
||||
tab name="git" split_direction="vertical" {
|
||||
pane {
|
||||
command "fish"
|
||||
args "-C" "gitui"
|
||||
close_on_exit true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,8 +1,7 @@
|
|||
ENV["JULIA_SHELL"] = "/usr/bin/fish"
|
||||
ENV["JULIA_EDITOR"] = "/home/mo/.cargo/bin/hx"
|
||||
ENV["JULIA_EDITOR"] = "hx"
|
||||
|
||||
using Pkg: Pkg
|
||||
Pkg.update()
|
||||
|
||||
using OhMyREPL: OhMyREPL
|
||||
using Revise: Revise, includet
|
||||
|
|
Loading…
Reference in a new issue