From a1354d13fdcd7d5045df40a13c5ce68c9cebd4fd Mon Sep 17 00:00:00 2001 From: Paul Aumann Date: Sat, 30 Mar 2024 01:19:14 +0100 Subject: [PATCH] bunch of config files --- .Rprofile | 6 ++ .config/alacritty/alacritty.toml | 97 ++++++++++++++++++++++++++++++++ .config/gdb/gdbinit | 1 + .config/lazygit/config.yml | 2 + .tmux.conf | 8 ++- .zshrc | 10 +++- 6 files changed, 120 insertions(+), 4 deletions(-) create mode 100644 .Rprofile create mode 100644 .config/alacritty/alacritty.toml create mode 100644 .config/gdb/gdbinit create mode 100644 .config/lazygit/config.yml diff --git a/.Rprofile b/.Rprofile new file mode 100644 index 0000000..4d7175f --- /dev/null +++ b/.Rprofile @@ -0,0 +1,6 @@ +# Default CRAN repository +local({ + r <- getOption("repos") + r["CRAN"] <- "https://cran.r-project.org" + options(repos=r) +}) diff --git a/.config/alacritty/alacritty.toml b/.config/alacritty/alacritty.toml new file mode 100644 index 0000000..9495069 --- /dev/null +++ b/.config/alacritty/alacritty.toml @@ -0,0 +1,97 @@ +live_config_reload = true + +[bell] +animation = "EaseOutExpo" +color = "0xffffff" +duration = 0 + +[colors] +draw_bold_text_with_bright_colors = false + +[colors.bright] +black = "#7B7B7B" +blue = "#B5DCFE" +cyan = "#DFDFFD" +green = "#CEFFAB" +magenta = "#FB9BFE" +red = "#AF4B57" +white = "#FEFFFE" +yellow = "#FFFECC" + +[colors.cursor] +cursor = "0x4d4d4c" +text = "0xffffff" + +[colors.normal] +black = "#4F4F4F" +blue = "#7D90A4" +cyan = "#85A6A5" +green = "#AFD383" +magenta = "#A4799D" +red = "#AF4B57" +white = "#EEEDEE" +yellow = "#E5C079" + +[colors.primary] +background = "#1C1F27" +foreground = "#979CAC" + +[cursor] +style = "Underline" +unfocused_hollow = true + +[debug] +log_level = "OFF" +persistent_logging = false +print_events = false +render_timer = false + +[font] +size = 14.0 + +[font.bold] +family = "Source Code Pro" +style = "Bold" + +[font.glyph_offset] +x = 0 +y = 0 + +[font.italic] +family = "Source Code Pro" +style = "Italic" + +[font.normal] +family = "Source Code Pro" +style = "Medium" + +[font.offset] +x = 0 +y = 0 + +[mouse] +bindings = [ + { action = "PasteSelection", mouse = "Middle" }, +] + +[scrolling] +history = 100000 +multiplier = 3 + +[selection] +save_to_clipboard = false +semantic_escape_chars = ",│`|:\"' ()[]{}<>" + +[window] +decorations = "full" +dynamic_padding = false +opacity = 1 +startup_mode = "windowed" + +[window.dimensions] +columns = 85 +lines = 40 + +[window.padding] +x = 5 +y = 5 diff --git a/.config/gdb/gdbinit b/.config/gdb/gdbinit new file mode 100644 index 0000000..afff122 --- /dev/null +++ b/.config/gdb/gdbinit @@ -0,0 +1 @@ + add-auto-load-safe-path /home/paul/code/ma/repo/scripts/gdb/vmlinux-gdb.py diff --git a/.config/lazygit/config.yml b/.config/lazygit/config.yml new file mode 100644 index 0000000..004bf64 --- /dev/null +++ b/.config/lazygit/config.yml @@ -0,0 +1,2 @@ +gui: + mouseEvents: false \ No newline at end of file diff --git a/.tmux.conf b/.tmux.conf index e8bf4fe..9e3255d 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -3,7 +3,13 @@ unbind-key C-b set-option -g prefix C-a bind-key C-a send-prefix -# split panes using |�(vertically) and - (horizontally) +# use command prompt shortcut similar to vscode +bind-key -n C-p command-prompt + +# since tmux prefix is now ctrl+a, use ctrl+b to send ctrl+a to program +bind-key -n C-b send C-a + +# split panes using | (vertically) and - (horizontally) bind / split-window -h -c "#{pane_current_path}" bind - split-window -v -c "#{pane_current_path}" bind c new-window -c "#{pane_current_path}" diff --git a/.zshrc b/.zshrc index 3780851..13f36e9 100644 --- a/.zshrc +++ b/.zshrc @@ -134,6 +134,7 @@ alias userchrome="$EDITOR /Users/paul/Library/Application\ Support/Firefox/Profi alias kw='echo Current Week: $((10#$(date +"%V")))' alias wol=wakeonlan alias ge=gnome-extensions +alias open="xdg-open" # Python tkinter stuff export PATH="/usr/local/opt/tcl-tk/bin:$PATH" @@ -152,10 +153,13 @@ alias mount-ds='[ -e "/Volumes/pauls-dateien" ] || open "smb://paul@192.168.193. # vscode shortcuts alias ma="code --folder-uri=vscode-remote://ssh-remote+sralab/home/2021/pau.aumann/ma" -alias ws="code ~/code/wasteside" +alias ws="cd ~/code/wasteside && code . && tmux new -A -s wasteside" -# iTerm2 integration -# source ~/.iterm2_shell_integration.zsh +# Fix ls colors for synology directories +LS_COLORS+=':ow=01;33' + +# Fix colors for ssh sessions +TERM=xterm-256color # history HISTFILE=~/.histfile