Change aliases, terminal and work stuff

This commit is contained in:
Bart van der Braak 2025-01-21 23:21:23 +01:00
parent ab338d3b15
commit 97677f6181
10 changed files with 14 additions and 93 deletions

View file

@ -1,6 +1,6 @@
alias ll='ls -la' alias ll='ls -la'
alias lt='ls --human-readable --size -1 -S --classify' alias nrs='sudo nixos-rebuild --use-remote-sudo switch'
alias nrebuild='sudo nixos-rebuild --use-remote-sudo switch' alias nrb='sudo nixos-rebuild --use-remote-sudo boot'
alias ngc='sudo nix-collect-garbage --delete-older-than 14d'
alias code='codium' alias code='codium'
alias rgf='rg --files | rg' alias rgf='rg --files | rg'
alias rcd='ranger'

View file

@ -20,6 +20,11 @@ function ensure_ssh_key {
fi fi
} }
function ngc {
local days=${1:-14}
sudo nix-collect-garbage --delete-older-than "${days}d"
}
# Map up/down arrow to search for history entries matching what is currently type in the command line. # Map up/down arrow to search for history entries matching what is currently type in the command line.
bind '"\e[A": history-search-backward' bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward' bind '"\e[B": history-search-forward'

View file

@ -1,67 +0,0 @@
local wezterm = require 'wezterm';
return {
-- Set the default program
default_prog = { '/usr/bin/env', 'bash' },
-- Set the font and font size
font = wezterm.font("Jetbrains Mono"),
font_size = 13.0,
-- Set color scheme
color_scheme = "OneHalfDark",
-- Set window transparency
window_background_opacity = 0.95,
-- Hide tab bar if there's only one tab
hide_tab_bar_if_only_one_tab = true,
-- Window padding
window_padding = {
left = 5,
right = 5,
top = 5,
bottom = 25,
},
-- Use a steady block cursor
default_cursor_style = "BlinkingBlock",
cursor_blink_rate = 600,
animation_fps = 144,
-- Set scrollback lines to a large number for history
scrollback_lines = 10000,
-- Key bindings
keys = {
-- CTRL+T to open a new tab
{key="t", mods="CTRL", action=wezterm.action{SpawnTab="DefaultDomain"}},
-- CTRL+W to close the current tab
{key="w", mods="CTRL", action=wezterm.action{CloseCurrentTab={confirm=true}}},
-- CTRL+ALT+D to split pane horizontally
{key="d", mods="CTRL|ALT", action=wezterm.action{SplitHorizontal={domain="CurrentPaneDomain"}}},
-- CTRL+SHIFT+D to split pane vertically
{key="d", mods="CTRL|SHIFT", action=wezterm.action{SplitVertical={domain="CurrentPaneDomain"}}},
-- CTRL+Left/Right Arrow to move between tabs
{key="LeftArrow", mods="CTRL", action=wezterm.action{ActivateTabRelative=-1}},
{key="RightArrow", mods="CTRL", action=wezterm.action{ActivateTabRelative=1}},
-- CTRL+Enter to toggle full screen
{key="Enter", mods="CTRL", action="ToggleFullScreen"},
},
-- Enable native macOS-style key repeat
enable_csi_u_key_encoding = true,
-- Set the default window size to something familiar
initial_cols = 120,
initial_rows = 30,
-- Enable Scrollbar
enable_scroll_bar = true,
}

View file

@ -36,11 +36,5 @@
process = git-lfs filter-process process = git-lfs filter-process
required = true required = true
[includeIf "gitdir:~/Repos/github.com/blender/"]
path = ~/.config/git/blender.gitconfig
[includeIf "gitdir:~/Repos/gitlab.com/blender/"]
path = ~/.config/git/blender.gitconfig
[includeIf "gitdir:~/Repos/projects.blender.org/"] [includeIf "gitdir:~/Repos/projects.blender.org/"]
path = ~/.config/git/blender.gitconfig path = ~/.config/git/blender.gitconfig

View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
dotfiles_home="${1:-$(dirname "$(realpath "$0")")}" dotfiles_home="${1:-$(dirname "$(realpath "$0")")}"
cp -rsf "$dotfiles_home"/. $HOME cp -rsf "$dotfiles_home" $HOME
echo "Dotfiles have been recursively copied and symlinked from $dotfiles_home to $HOME." echo "Dotfiles have been recursively copied and symlinked from $dotfiles_home to $HOME."

View file

@ -4,15 +4,10 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
mold mold
gcc gcc
ninja
clang clang
lld lld
lldb lldb
musl musl
jdk11
dioxus-cli
surrealdb
surrealdb-migrations
surrealist
trunk
]; ];
} }

View file

@ -4,8 +4,6 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
thunderbird thunderbird
element-desktop element-desktop
aws-sam-cli
awscli2
gnumake gnumake
cmake cmake
]; ];

View file

@ -17,7 +17,6 @@ in
fzf fzf
jq jq
silver-searcher silver-searcher
ranger
ripgrep ripgrep
networkmanager-openvpn networkmanager-openvpn
(pkgs.writeTextDir "share/sddm/themes/breeze/theme.conf.user" '' (pkgs.writeTextDir "share/sddm/themes/breeze/theme.conf.user" ''
@ -25,10 +24,7 @@ in
background=${customWallpaper} background=${customWallpaper}
'') '')
dig dig
caligula
zig zig
zls
spotify spotify
texlive.combined.scheme-full
]; ];
} }

View file

@ -9,7 +9,7 @@
vscodium vscodium
thunderbird thunderbird
fastfetch fastfetch
wezterm ghostty
neovim neovim
logseq logseq
element-desktop element-desktop
@ -18,8 +18,8 @@
python3 python3
gnumake gnumake
gccgo gccgo
# nodejs_22 nodejs_22
# corepack_22 corepack_22
azure-cli azure-cli
sops sops
blender blender