mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 13:35:42 -07:00
Compare commits
15 Commits
2022-03-11
...
2022-05-08
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ab9bd3452 | ||
|
|
b68c1e2c65 | ||
|
|
3c8d8ca5e1 | ||
|
|
f6e6c42b26 | ||
|
|
7165e7c93f | ||
|
|
63f401c84b | ||
|
|
dea863ee35 | ||
|
|
d01a320de7 | ||
|
|
0564dbbb3d | ||
|
|
1efa61a9f4 | ||
|
|
77a01d2fda | ||
|
|
71711a5cc0 | ||
|
|
a49474fe60 | ||
|
|
2217cfb47b | ||
|
|
75b0c5db9e |
@@ -398,6 +398,49 @@ EOF
|
||||
tldr)
|
||||
pip3 install --user tldr
|
||||
;;
|
||||
blint)
|
||||
pip3 install --user blint
|
||||
;;
|
||||
dust)
|
||||
if ! command -v cargo >/dev/null 2>&1 ; then
|
||||
echo "This needs cargo (for rust)!" >/dev/stderr
|
||||
exit 1
|
||||
fi
|
||||
cargo install du-dust
|
||||
;;
|
||||
bottom)
|
||||
if ! command -v cargo >/dev/null 2>&1 ; then
|
||||
echo "This needs cargo (for rust)!" >/dev/stderr
|
||||
exit 1
|
||||
fi
|
||||
cargo install bottom
|
||||
;;
|
||||
delta)
|
||||
if !check_sudo ; then
|
||||
echo "Must be able to run as sudo."
|
||||
exit 1
|
||||
fi
|
||||
dpkg_url=$(curl https://api.github.com/repos/dandavison/delta/releases/latest | \
|
||||
jq -r '.assets[] | select(.name|test(".*_amd64.deb")) | select(.name|test(".*musl.*")|not) | .browser_download_url')
|
||||
dpkg_name="/tmp/delta_amd64.deb"
|
||||
download "${dpkg_url}" "${dpkg_name}"
|
||||
sudo dpkg -i "${dpkg_name}"
|
||||
;;
|
||||
ropper)
|
||||
install_pkgs python3-z3
|
||||
pip3 install --user pyvex ropper
|
||||
;;
|
||||
kubeconform)
|
||||
go install github.com/yannh/kubeconform/cmd/kubeconform@latest
|
||||
;;
|
||||
starship)
|
||||
mkdir -p ${DESTDIR}
|
||||
download \
|
||||
"https://github.com/starship/starship/releases/latest/download/starship-x86_64-unknown-linux-musl.tar.gz" \
|
||||
/tmp/starship.tar.gz
|
||||
tar -C ${DESTDIR} -zxf /tmp/starship.tar.gz starship
|
||||
add_bin_symlink starship
|
||||
;;
|
||||
*)
|
||||
echo "Unknown tool: ${TOOL}" >/dev/stderr
|
||||
list_tools
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
||||
# The parser is also very primitive, and not human-friendly.
|
||||
fields=0 48 17 18 38 39 40 2 46 47 49 1
|
||||
sort_key=49
|
||||
sort_key=46
|
||||
sort_direction=-1
|
||||
tree_sort_key=0
|
||||
tree_sort_direction=1
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
excludesfile = ~/.gitignore
|
||||
editor = vim
|
||||
whitespace = trailing-space,space-before-tab
|
||||
pager = command -v delta >/dev/null 2>&1 && delta || less -eFiJM~ -j3
|
||||
|
||||
[color]
|
||||
diff = auto
|
||||
@@ -13,6 +14,7 @@
|
||||
|
||||
[diff]
|
||||
tool = vimdiff
|
||||
colorMoved = default
|
||||
|
||||
[difftool]
|
||||
prompt = false
|
||||
@@ -41,7 +43,7 @@
|
||||
user = matir
|
||||
|
||||
# Site specific config
|
||||
[url "https://github.com./"]
|
||||
[url "https://github.com/"]
|
||||
insteadOf = "github:"
|
||||
insteadOf = "github://"
|
||||
|
||||
@@ -58,16 +60,29 @@
|
||||
|
||||
[credential]
|
||||
helper = cache --timeout=36000
|
||||
|
||||
[receive]
|
||||
denyCurrentBranch = updateInstead
|
||||
|
||||
[merge]
|
||||
tool = vimdiff
|
||||
conflictstyle = diff3
|
||||
|
||||
[mergetool]
|
||||
prompt = false
|
||||
|
||||
[include]
|
||||
path = ~/.gitconfig.local
|
||||
|
||||
[pull]
|
||||
rebase = false
|
||||
|
||||
[init]
|
||||
defaultBranch = main
|
||||
|
||||
[interactive]
|
||||
diffFilter = command -v delta >/dev/null 2>&1 && delta || cat
|
||||
|
||||
[delta]
|
||||
navigate = true
|
||||
line-numbers = true
|
||||
|
||||
@@ -17,9 +17,13 @@ Thumbs.db
|
||||
# Try to avoid accidentally checking in private keys
|
||||
id_rsa
|
||||
id_ecdsa
|
||||
id_ed25519
|
||||
|
||||
# Kicad backup files
|
||||
*.kicad_pcb-bak
|
||||
|
||||
# Mypy cache path
|
||||
.mypy_cache
|
||||
|
||||
# These files should basically never be committed
|
||||
.env
|
||||
|
||||
8
dotfiles/zshrc.d/aliases.zsh
Normal file
8
dotfiles/zshrc.d/aliases.zsh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env zsh
|
||||
|
||||
# On some systems, bat is batcat
|
||||
if ! command -v bat >/dev/null 2>&1 ; then
|
||||
if command -v batcat >/dev/null 2>&1 ; then
|
||||
alias bat=$(command -v batcat)
|
||||
fi
|
||||
fi
|
||||
@@ -1,3 +1,9 @@
|
||||
function dumpenv {
|
||||
tr '\0' '\n' < /proc/${1}/environ
|
||||
}
|
||||
|
||||
if test -x "${HOME}/tools/starship/starship" ; then
|
||||
function starship_prompt {
|
||||
eval $($HOME/tools/starship/starship init zsh)
|
||||
}
|
||||
fi
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
function duf {
|
||||
function duh {
|
||||
du -sk "$@" | sort -n | while read size fname; do for unit in K M G T P E Z Y; do if [ $size -lt 1024 ]; then echo -e "${size}${unit}\t${fname}"; break; fi; size=$((size/1024)); done; done
|
||||
}
|
||||
|
||||
@@ -1,9 +1,14 @@
|
||||
bat
|
||||
binfmt-support
|
||||
build-essential
|
||||
cryptsetup
|
||||
dsniff
|
||||
duf
|
||||
ecryptfs-utils
|
||||
exa
|
||||
exuberant-ctags
|
||||
fd-find
|
||||
fzf
|
||||
httpie
|
||||
iftop
|
||||
iptraf
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user