From 48bda2be2d0d6ff96aaed12b39eb302077767ca0 Mon Sep 17 00:00:00 2001 From: fszimnau Date: Thu, 16 Oct 2025 13:04:36 +0200 Subject: [PATCH] additions from msys64 --- home_external/.bash_aliases | 2 +- home_external/.bash_profile | 1 + home_external/.config/sqlite3/.sqliterc | 2 + home_external/.config/wezterm/wezterm.lua | 117 ++++++++++++++++++++++ 4 files changed, 121 insertions(+), 1 deletion(-) create mode 100644 home_external/.config/sqlite3/.sqliterc create mode 100644 home_external/.config/wezterm/wezterm.lua diff --git a/home_external/.bash_aliases b/home_external/.bash_aliases index c88e541..34f2456 100644 --- a/home_external/.bash_aliases +++ b/home_external/.bash_aliases @@ -80,7 +80,7 @@ doUpdateFlatpak() { # executes command and notifies upon failure execute() { dir="$(pwd)"; - dir=${dir##*/}; + dir=${dir##*/}; # cut off previous path (/path/to/foo.txt -> foo.txt) if [[ -n "$2" ]]; then errLog=$2; else diff --git a/home_external/.bash_profile b/home_external/.bash_profile index 5545f00..ad8dc45 100644 --- a/home_external/.bash_profile +++ b/home_external/.bash_profile @@ -2,4 +2,5 @@ # ~/.bash_profile # +[[ -f ~/.profile ]] && . ~/.profile [[ -f ~/.bashrc ]] && . ~/.bashrc diff --git a/home_external/.config/sqlite3/.sqliterc b/home_external/.config/sqlite3/.sqliterc new file mode 100644 index 0000000..2ef1f42 --- /dev/null +++ b/home_external/.config/sqlite3/.sqliterc @@ -0,0 +1,2 @@ +.crlf off +.mode box diff --git a/home_external/.config/wezterm/wezterm.lua b/home_external/.config/wezterm/wezterm.lua new file mode 100644 index 0000000..b0f260a --- /dev/null +++ b/home_external/.config/wezterm/wezterm.lua @@ -0,0 +1,117 @@ +-- Pull in the wezterm API +local wezterm = require 'wezterm' +local act = wezterm.action +local mux = wezterm.mux + +-- This will hold the configuration. +local config = wezterm.config_builder() + +-- This is where you actually apply your config choices + +-- For example, changing the color scheme: +config.color_scheme = 'AdventureTime' +-- config.font = wezterm.font 'JetBrains Mono' -- also the default +config.font = wezterm.font 'Fira Code' +config.font_size = 12.0 -- also the default + +-- Spawn a git bash shell +-- config.default_prog = { 'C:/Program Files/Git/bin/bash.exe' , '--cd-to-home' } +-- config.default_prog = { 'C:/theo_dev/bin/msys64/usr/bin/bash.exe' } +-- config.default_prog = { 'C:/theo_dev/bin/msys64/msys2_shell.cmd', '-defterm', '-where', 'G:\\', '-no-start', '-ucrt64', '-use-full-path' } +config.default_prog = { 'C:/theo_dev/bin/msys64/msys2_shell.cmd', '-defterm', '-no-start', '-ucrt64', '-use-full-path' } + +-- cursor shape and behaviour +config.default_cursor_style = 'BlinkingBar' +config.animation_fps = 1 +config.cursor_blink_ease_in = 'Constant' +config.cursor_blink_ease_out = 'Constant' + +config.enable_kitty_keyboard = true + +-- window appearance +config.enable_scroll_bar = true +config.window_padding = { + left = 0, + right = 0, + top = 0, + bottom = 0, +} +config.initial_rows = 50; + +wezterm.on('gui-startup', function(cmd) + local tab, pane, window = mux.spawn_window(cmd or {}) + -- Create a split occupying the right 1/3 of the screen + local loading_bar_pane = pane:split { + direction = 'Bottom', + size = 0.06, + } + -- prepare command (\n possible to send command) + loading_bar_pane:send_text '. /g/zeitlaeufer/runProject.sh de.szimnau.zeitlaeufer.WorkLoadingBar' +end) + +config.keys = { + -- This will create a new horizontal split and run your default program inside it + { + key = 'E', + mods = 'CTRL|SHIFT', + action = act.SplitHorizontal { domain = 'CurrentPaneDomain' }, + }, + -- This will create a new vertical split and run your default program inside it + { + key = 'O', + mods = 'CTRL|SHIFT', + action = act.SplitVertical { domain = 'CurrentPaneDomain' }, + }, + -- resize the current split + { + key = 'UpArrow', + mods = 'CTRL|SHIFT', + action = act.AdjustPaneSize { 'Up', 1 }, + }, + { + key = 'DownArrow', + mods = 'CTRL|SHIFT', + action = act.AdjustPaneSize { 'Down', 1 }, + }, + { + key = 'LeftArrow', + mods = 'CTRL|SHIFT', + action = act.AdjustPaneSize { 'Left', 1 } + }, + { + key = 'RightArrow', + mods = 'CTRL|SHIFT', + action = act.AdjustPaneSize { 'Right', 1 }, + }, + -- move around the splits + { + key = 'UpArrow', + mods = 'ALT', + action = act.ActivatePaneDirection 'Up', + }, + { + key = 'DownArrow', + mods = 'ALT', + action = act.ActivatePaneDirection 'Down', + }, + { + key = 'LeftArrow', + mods = 'ALT', + action = act.ActivatePaneDirection 'Left', + }, + { + key = 'RightArrow', + mods = 'ALT', + action = act.ActivatePaneDirection 'Right', + }, + -- makes pane take up all available space in the tab, hiding all other panes + { + key = 'X', + mods = 'CTRL|SHIFT', + action = wezterm.action.TogglePaneZoomState, + }, +} + + +-- and finally, return the configuration to wezterm +return config