From e32928efa3f7f3b62336d4839e7b61b6c3a9b42b Mon Sep 17 00:00:00 2001 From: Bert Peters Date: Thu, 1 Jul 2021 12:36:03 +0200 Subject: [PATCH] Misc improvements --- sakura/.config/sakura/sakura.conf | 2 +- systemd/.config/systemd/user/tmpfiles-cleanup.service | 3 +-- zsh/.config/zsh/.zshenv | 5 +++++ zsh/.config/zsh/.zshrc | 8 ++++++++ 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/sakura/.config/sakura/sakura.conf b/sakura/.config/sakura/sakura.conf index 1144715..4fb8e54 100644 --- a/sakura/.config/sakura/sakura.conf +++ b/sakura/.config/sakura/sakura.conf @@ -60,7 +60,7 @@ decrease_font_size_key=minus fullscreen_key=F11 set_colorset_accelerator=5 icon_file=terminal-tango.svg -use_fading=true +use_fading=false scrollable_tabs=true stop_tab_cycling_at_end_tabs=No word_chars=-,./?%&#_~: diff --git a/systemd/.config/systemd/user/tmpfiles-cleanup.service b/systemd/.config/systemd/user/tmpfiles-cleanup.service index ec18d87..4521a13 100644 --- a/systemd/.config/systemd/user/tmpfiles-cleanup.service +++ b/systemd/.config/systemd/user/tmpfiles-cleanup.service @@ -3,8 +3,7 @@ Description=Cleanup of temporary files [Service] Type=oneshot -ExecStart=/usr/bin/systemd-tmpfiles --root=%h --clean %h/.config/tmpfiles/tmpfiles.conf -ExecStart=/usr/bin/find %h/.cache/pacman/sources -type f -maxdepth 1 -delete +ExecStart=/bin/systemd-tmpfiles --root=%h --clean %h/.config/tmpfiles/tmpfiles.conf [Install] WantedBy=default.target diff --git a/zsh/.config/zsh/.zshenv b/zsh/.config/zsh/.zshenv index 9d9735b..ee6f0c7 100644 --- a/zsh/.config/zsh/.zshenv +++ b/zsh/.config/zsh/.zshenv @@ -76,6 +76,11 @@ if [[ -d "$HOME/.local/bin" ]]; then path+="$HOME/.local/bin" fi +# Add cargo binaries to path +if [[ -d "$HOME/.cargo/bin" ]]; then + path+="$HOME/.cargo/bin" +fi + # Set up GIMP export GIMP2_DIRECTORY="$XDG_CONFIG_HOME"/gimp diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index bcdd864..b801ed1 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -78,6 +78,9 @@ alias wget="wget --hsts-file=\"$XDG_CACHE_HOME/wget-hsts\"" alias makej="make -j$(nproc)" alias sdc='sudo docker-compose' alias nrc='nix run -c' +alias gcs='gcloud compute ssh' +alias gscp='gcloud compute scp' +alias gci='gcloud compute instances' # Not an alias but useful nonetheless. function pasters() { @@ -211,6 +214,11 @@ function _pip_completion { compctl -K _pip_completion pip # pip zsh completion end +# Load gcloud completions if they are available +if [[ -f /usr/share/google-cloud-sdk/completion.zsh.inc ]]; then + source /usr/share/google-cloud-sdk/completion.zsh.inc +fi + # Enable autocorrect, in case I still get it wrong setopt correct export SPROMPT="Correct $fg[red]%R$reset_color to $fg[green]%r$reset_color? [ynae] "