1
0
Fork 0
mirror of https://codeberg.org/Mo8it/server_dotfiles.git synced 2024-12-04 23:50:31 +00:00

Compare commits

...

5 commits

Author SHA1 Message Date
050d49340b Update Helix config 2023-08-18 00:38:28 +02:00
b6bd272e84 Replace function with alias 2023-08-17 23:58:18 +02:00
3934383666 Replace Neovim with Helix 2023-08-17 23:58:01 +02:00
9e4c69bd97 Remove updating PATH with cargo bin dir 2023-08-17 23:56:46 +02:00
3088533580 Update podman-default-create 2023-08-17 23:56:32 +02:00
2 changed files with 15 additions and 26 deletions

View file

@ -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

View file

@ -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"