This commit is contained in:
tosu 2024-10-04 15:11:08 +02:00
parent 98a944fd2f
commit 76432d511b
No known key found for this signature in database
5 changed files with 11 additions and 7 deletions

View File

@ -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'

View File

@ -38,8 +38,8 @@ local cmp_action = require('lsp-zero').cmp_action()
local cmp_mappings = lsp.defaults.cmp_mappings({
['<C-p>'] = cmp.mapping.select_prev_item(cmp_select),
['<C-n>'] = cmp.mapping.select_next_item(cmp_select),
['<C-t>'] = cmp.mapping.confirm({ select = true }),
['<C-Space>'] = cmp.mapping.complete(),
['<C-y>'] = cmp.mapping.confirm({ select = true }),
-- ['<C-Space>'] = cmp.mapping.complete(),
})
--
lsp.set_preferences({

View File

@ -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

View File

@ -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

View File

@ -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^"