mirror of
https://codeberg.org/Mo8it/server_dotfiles.git
synced 2024-12-04 23:50:31 +00:00
Compare commits
5 commits
d27c1a7c2f
...
050d49340b
Author | SHA1 | Date | |
---|---|---|---|
050d49340b | |||
b6bd272e84 | |||
3934383666 | |||
9e4c69bd97 | |||
3088533580 |
2 changed files with 15 additions and 26 deletions
|
@ -1,27 +1,15 @@
|
|||
# Environment variables
|
||||
set -p PATH "$HOME/.cargo/bin"
|
||||
|
||||
# Non interactive functions
|
||||
function podman-default-create -w podman
|
||||
set -l container_name $argv[1]
|
||||
|
||||
if systemctl --user is-enabled container-$container_name
|
||||
systemctl --user disable --now container-$container_name
|
||||
end
|
||||
|
||||
if podman container exists $container_name
|
||||
podman stop $container_name
|
||||
end
|
||||
|
||||
podman create \
|
||||
--name $container_name \
|
||||
--replace \
|
||||
--tz local \
|
||||
$argv[2..]
|
||||
-e TZ=Europe/Berlin \
|
||||
$argv[2..]; or return 1
|
||||
|
||||
set -l old_pwd (pwd)
|
||||
cd ~/.config/systemd/user
|
||||
podman generate systemd --new --files --name $container_name
|
||||
cd $old_pwd
|
||||
podman generate systemd --no-header --new --name $container_name >~/.config/systemd/user/container-$container_name.service; or return 1
|
||||
|
||||
systemctl --user enable --now container-$container_name
|
||||
end
|
||||
|
@ -31,11 +19,11 @@ if status is-interactive
|
|||
set -g fish_greeting
|
||||
|
||||
# Interactive environment variables
|
||||
set -x EDITOR /usr/bin/nvim
|
||||
set -x EDITOR ~/.cargo/bin/hx
|
||||
|
||||
# Abbreviations
|
||||
## Replacements
|
||||
abbr -ag rm trash
|
||||
abbr -ag rm "trash"
|
||||
|
||||
## Safety options
|
||||
abbr -ag cp "cp -i"
|
||||
|
@ -45,9 +33,6 @@ if status is-interactive
|
|||
## Shortcuts
|
||||
abbr -ag pps "podman ps --format '{{.Names}}'"
|
||||
|
||||
# Functions
|
||||
## Replacements
|
||||
function cat -w bat
|
||||
bat $argv
|
||||
end
|
||||
# Aliases
|
||||
alias cat "bat"
|
||||
end
|
||||
|
|
|
@ -1,21 +1,26 @@
|
|||
theme = "onedark"
|
||||
theme = "dracula"
|
||||
|
||||
[editor]
|
||||
mouse = false
|
||||
shell = ["fish", "-c"]
|
||||
cursorline = true
|
||||
idle-timeout = 5
|
||||
true-color = true
|
||||
bufferline = "multiple"
|
||||
bufferline = "always"
|
||||
color-modes = true
|
||||
|
||||
[editor.lsp]
|
||||
display-messages = true
|
||||
goto-reference-include-declaration = false
|
||||
|
||||
[editor.cursor-shape]
|
||||
insert = "bar"
|
||||
normal = "block"
|
||||
select = "underline"
|
||||
|
||||
[editor.file-picker]
|
||||
hidden = false
|
||||
|
||||
[editor.whitespace.render]
|
||||
space = "none"
|
||||
tab = "none"
|
||||
|
@ -29,7 +34,6 @@ p = "paste_clipboard_after"
|
|||
P = "paste_clipboard_before"
|
||||
y = "yank_joined_to_clipboard"
|
||||
D = ["yank_main_selection_to_clipboard", "delete_selection"]
|
||||
C-d = ["extend_to_line_bounds", "delete_selection"]
|
||||
V = "extend_to_line_end"
|
||||
|
||||
C-k = "goto_next_buffer"
|
||||
|
|
Loading…
Reference in a new issue