From 76432d511b2f5c5602877ec7cfaf42ca2581210d Mon Sep 17 00:00:00 2001 From: tosu Date: Fri, 4 Oct 2024 15:11:08 +0200 Subject: [PATCH] Save --- .bashrc | 1 + .config/nvim/after/plugin/lsp.lua | 4 ++-- .gitconfig | 9 ++++++--- .local/bin/hist | 2 +- .local/bin/updatebar | 2 +- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/.bashrc b/.bashrc index 73bf937..787aad3 100644 --- a/.bashrc +++ b/.bashrc @@ -179,6 +179,7 @@ alias svi='sudo vi' alias open='xdg-open' alias dp='declare -p' alias wttr='curl -sfkSL wttr.in' +alias wttrb='curl -sfkSL wttr.in/berlin' alias ipa='ip -br -color=auto a' alias xcopy='xsel --clipboard --input' alias xpaste='xsel --clipboard --output' diff --git a/.config/nvim/after/plugin/lsp.lua b/.config/nvim/after/plugin/lsp.lua index 84b9496..1cc95b4 100644 --- a/.config/nvim/after/plugin/lsp.lua +++ b/.config/nvim/after/plugin/lsp.lua @@ -38,8 +38,8 @@ local cmp_action = require('lsp-zero').cmp_action() local cmp_mappings = lsp.defaults.cmp_mappings({ [''] = cmp.mapping.select_prev_item(cmp_select), [''] = cmp.mapping.select_next_item(cmp_select), - [''] = cmp.mapping.confirm({ select = true }), - [''] = cmp.mapping.complete(), + [''] = cmp.mapping.confirm({ select = true }), + -- [''] = cmp.mapping.complete(), }) -- lsp.set_preferences({ diff --git a/.gitconfig b/.gitconfig index 820e860..ba2401b 100644 --- a/.gitconfig +++ b/.gitconfig @@ -1,7 +1,7 @@ [user] name = tosu email = timo42@proton.me - signingkey = C00746F2E0F36492! + signingkey = /home/tosuman/.ssh/external/external_github_git.pub [init] defaultBranch = main [color] @@ -24,6 +24,9 @@ d = diff tree = log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit [gpg] - program = gpg + program = ssh + format = ssh [commit] -# gpgsign = true + gpgsign = true +[gpg "ssh"] + allowedSignersFile = /home/tosuman/.ssh/allowed_signers diff --git a/.local/bin/hist b/.local/bin/hist index 33ddcb6..254ea44 100755 --- a/.local/bin/hist +++ b/.local/bin/hist @@ -9,7 +9,7 @@ if [ -t 0 ] && [ -n "${1}" ]; then invert_flag="-v"; shift; [ -n "${1}" ] || { echo "${0}: syntax error: expected pattern after minus"; exit 2; } } || invert_flag="" - query="${query} | grep ${invert_flag} -F -- $(squote_escape "${1}")" + query="${query} | grep ${invert_flag} -aF -- $(squote_escape "${1}")" shift done diff --git a/.local/bin/updatebar b/.local/bin/updatebar index 50ad838..398517c 100755 --- a/.local/bin/updatebar +++ b/.local/bin/updatebar @@ -92,7 +92,7 @@ getVolume() { } getRates() { - rxtxrates="$( (cat /tmp/.datarates ; grep wlan0 /proc/net/dev) | awk '{if(l1){printf "%.3f ↑ %.3f ↓\n", ($2-l1)/1024^2*8, ($10-l2)/1024^2*8} else{l1=$2; l2=$10;}}' )" + rxtxrates="$( (cat /tmp/.datarates ; grep wlan0 /proc/net/dev) | awk '{if(l1){printf "%.3f ↓ %.3f ↑\n", ($2-l1)/1024^2*8, ($10-l2)/1024^2*8} else{l1=$2; l2=$10;}}' )" grep wlan0 /proc/net/dev > /tmp/.datarates fontColor="$(getColor '92ee79')" [ -n "${rxtxrates}" ] && rxtxrates="${dlm}^c#${fontColor}1^${rxtxrates}^d^"