mirror of
https://github.com/don-philipe/dotfiles.git
synced 2026-05-14 04:21:46 +02:00
Compare commits
4 Commits
16d1175f21
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
| 15240d7e86 | |||
| 97e16f6273 | |||
| 5ede1b3b47 | |||
| 6033bd016e |
+1
-1
@@ -4,7 +4,7 @@ URxvt.foreground: white
|
|||||||
!URxvt.borderColor: dark grey
|
!URxvt.borderColor: dark grey
|
||||||
URxvt.scrollBar: false
|
URxvt.scrollBar: false
|
||||||
URxvt.cursorColor: green
|
URxvt.cursorColor: green
|
||||||
URxvt.font: xft:monospace:size=9,xft:Noto Color Emoji
|
URxvt.font: xft:Jet Brains Mono Nerd Font:size=9,xft:monospace:size=9,xft:Noto Color Emoji
|
||||||
URxvt.perl-ext-common: default,matcher
|
URxvt.perl-ext-common: default,matcher
|
||||||
URxvt.url-launcher: /usr/bin/xdg-open
|
URxvt.url-launcher: /usr/bin/xdg-open
|
||||||
URxvt.matcher.button: 1
|
URxvt.matcher.button: 1
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ text = "#000000"
|
|||||||
[env]
|
[env]
|
||||||
# set this to have true color when using nvim etc. in remote tmux session
|
# set this to have true color when using nvim etc. in remote tmux session
|
||||||
TERM = "xterm-256color"
|
TERM = "xterm-256color"
|
||||||
|
WINIT_X11_SCALE_FACTOR = "1.0"
|
||||||
|
|
||||||
[font]
|
[font]
|
||||||
size = 9
|
size = 9
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
-- utilities functions
|
-- utilities functions
|
||||||
require("utils")
|
--require("utils")
|
||||||
|
|
||||||
require("config.remap")
|
require("config.remap")
|
||||||
require("config.set")
|
require("config.set")
|
||||||
@@ -22,10 +22,11 @@ require("config.gitsigns")
|
|||||||
require("config.lualine")
|
require("config.lualine")
|
||||||
require("config.telescope")
|
require("config.telescope")
|
||||||
require("config.indentline")
|
require("config.indentline")
|
||||||
require("config.redmine")
|
--require("config.redmine")
|
||||||
require("config.diffview")
|
require("config.diffview")
|
||||||
require("config.dap")
|
require("config.dap")
|
||||||
require("config.parrot")
|
require("config.parrot")
|
||||||
|
--require("config.gitea")
|
||||||
|
|
||||||
-- for some reason this must be placed in init.lua file
|
-- for some reason this must be placed in init.lua file
|
||||||
-- it doesn't work in any lua/config/*.lua files
|
-- it doesn't work in any lua/config/*.lua files
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
|
-- return {
|
||||||
|
-- model = "llama3.2",
|
||||||
|
-- host = "jupiter",
|
||||||
|
-- port = "11434",
|
||||||
|
-- }
|
||||||
return {
|
return {
|
||||||
model = "llama3.2",
|
model = "llama3.3",
|
||||||
host = "foo",
|
host = "owu-zegv-api.med.tu-dresden.de",
|
||||||
port = "11343",
|
port = "443",
|
||||||
|
https = true,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -75,12 +75,28 @@ git-blobs()
|
|||||||
$(command -v gnumfmt || echo numfmt) --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest
|
$(command -v gnumfmt || echo numfmt) --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Do a short code review via several git commands
|
||||||
|
# https://piechowski.io/post/git-commands-before-reading-code/
|
||||||
|
git-review()
|
||||||
|
{
|
||||||
|
echo "### What Changes the Most (1y ago) ###"
|
||||||
|
git log --format=format: --name-only --since="1 year ago" | sort | uniq -c | sort -nr | head -20
|
||||||
|
echo "\n### Who Built This ###"
|
||||||
|
git --no-pager shortlog -sn --no-merges
|
||||||
|
echo "\n### Where Do Bugs Cluster ###"
|
||||||
|
git log -i -E --grep="fix|bug|broken" --name-only --format='' | sort | uniq -c | sort -nr | head -20
|
||||||
|
echo "\n### Is This Project Accelerating or Dying (commit count per m) ###"
|
||||||
|
git log --format='%ad' --date=format:'%Y-%m' | sort | uniq -c
|
||||||
|
echo "\n### How Often Is the Team Firefighting ###"
|
||||||
|
git log --oneline --since="1 year ago" | grep -iE 'revert|hotfix|emergency|rollback'
|
||||||
|
}
|
||||||
|
|
||||||
sshs()
|
sshs()
|
||||||
{
|
{
|
||||||
tmprc=$(ssh $1 "mktemp --directory")
|
tmprc=$(ssh $1 "mktemp --directory")
|
||||||
scp -q $HOME/.zshrc $1:$tmprc
|
scp -q $HOME/.zshrc $1:$tmprc
|
||||||
ssh -t $1 "export ZDOTDIR=${tmprc}; exec zsh"
|
ssh -t $1 "export ZDOTDIR=${tmprc}; trap 'rm -rf ${tmprc}' EXIT INT TERM; exec zsh"
|
||||||
ssh $1 "rm -rf ${tmprc}"
|
#ssh $1 "rm -rf ${tmprc}"
|
||||||
}
|
}
|
||||||
|
|
||||||
# show the current mode:
|
# show the current mode:
|
||||||
|
|||||||
@@ -106,7 +106,7 @@ autoload -U promptinit
|
|||||||
promptinit
|
promptinit
|
||||||
|
|
||||||
export XDG_CONFIG_HOME=$HOME/.config/
|
export XDG_CONFIG_HOME=$HOME/.config/
|
||||||
export EDITOR=vim
|
export EDITOR=nvim
|
||||||
|
|
||||||
alias ls='ls --color=always'
|
alias ls='ls --color=always'
|
||||||
alias grep='grep --color=always'
|
alias grep='grep --color=always'
|
||||||
@@ -114,6 +114,7 @@ alias less='less -R'
|
|||||||
alias dd='dd status=progress oflag=direct'
|
alias dd='dd status=progress oflag=direct'
|
||||||
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
||||||
alias hibernate='sudo systemctl hibernate'
|
alias hibernate='sudo systemctl hibernate'
|
||||||
alias ssh="TERM=linux ssh" # for not complaining urxvt about terminals without TERM set
|
#alias ssh="TERM=linux ssh" # for not complaining urxvt about terminals without TERM set
|
||||||
alias cpup="cp -T $0 ../$0"
|
alias cpup="cp -T $0 ../$0"
|
||||||
alias pythonweb="python -m SimpleHTTPServer 8090"
|
alias pythonweb="python -m SimpleHTTPServer 8090"
|
||||||
|
alias sayhi="echo hi"
|
||||||
|
|||||||
Reference in New Issue
Block a user