mirror of
https://github.com/Matir/skel.git
synced 2026-05-26 05:29:09 -07:00
Compare commits
9 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7a5abd73cb | ||
|
|
07926d6673 | ||
|
|
24690e8399 | ||
|
|
2232dce811 | ||
|
|
f6de62700a | ||
|
|
01272f4474 | ||
|
|
e176b0c136 | ||
|
|
67fad831e5 | ||
|
|
048d7fb1ba |
@@ -138,7 +138,7 @@ case ${TOOL} in
|
|||||||
makedest_or_die
|
makedest_or_die
|
||||||
gbase="https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/"
|
gbase="https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/"
|
||||||
# TODO: find a way to make this version independent
|
# TODO: find a way to make this version independent
|
||||||
gsdk="google-cloud-sdk-209.0.0-linux-x86_64.tar.gz"
|
gsdk="google-cloud-sdk-277.0.0-linux-x86_64.tar.gz"
|
||||||
download "${gbase}${gsdk}" /tmp/gcloud.tar.gz
|
download "${gbase}${gsdk}" /tmp/gcloud.tar.gz
|
||||||
tar zxf /tmp/gcloud.tar.gz --strip-components=1 -C "${DESTDIR}"
|
tar zxf /tmp/gcloud.tar.gz --strip-components=1 -C "${DESTDIR}"
|
||||||
rm /tmp/gcloud.tar.gz
|
rm /tmp/gcloud.tar.gz
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||||
|
|
||||||
# Cryptsetup alias
|
# Cryptsetup alias
|
||||||
alias luksFormat='cryptsetup luksFormat -s 512 -c aes-xts-plain64 -h sha256 -i 15000'
|
alias luksFormat='cryptsetup luksFormat --type=luks2 --pbkdf-memory=2560000 --pbkdf=argon2id -i 15000 -s 512 -h sha256 -c aes-xts-plain64'
|
||||||
|
|
||||||
# Colors
|
# Colors
|
||||||
if ls --version >/dev/null 2>&1 ; then
|
if ls --version >/dev/null 2>&1 ; then
|
||||||
@@ -37,4 +37,7 @@ alias dircount="for d in * ; do find \$d -type d | wc -l | tr -d '\n' ; echo ' '
|
|||||||
alias drop_caches="echo 3 | sudo /usr/bin/tee /proc/sys/vm/drop_caches"
|
alias drop_caches="echo 3 | sudo /usr/bin/tee /proc/sys/vm/drop_caches"
|
||||||
|
|
||||||
# dump acpi temperature
|
# dump acpi temperature
|
||||||
alias temp='printf "%02.2f\n" "$(cat /sys/class/thermal/thermal_zone0/temp)e-3"'
|
alias gettemp='printf "%02.2f\n" "$(cat /sys/class/thermal/thermal_zone0/temp)e-3"'
|
||||||
|
|
||||||
|
# get git working directory
|
||||||
|
alias gitroot="git rev-parse --git-toplevel"
|
||||||
|
|||||||
15
dotfiles/config/user-dirs.dirs
Normal file
15
dotfiles/config/user-dirs.dirs
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
# This file is written by xdg-user-dirs-update
|
||||||
|
# If you want to change or add directories, just edit the line you're
|
||||||
|
# interested in. All local changes will be retained on the next run
|
||||||
|
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
|
||||||
|
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
|
||||||
|
# absolute path. No other format is supported.
|
||||||
|
#
|
||||||
|
XDG_DESKTOP_DIR="$HOME/Desktop"
|
||||||
|
XDG_DOWNLOAD_DIR="$HOME/Downloads"
|
||||||
|
XDG_TEMPLATES_DIR="$HOME/"
|
||||||
|
XDG_PUBLICSHARE_DIR="$HOME/Shared"
|
||||||
|
XDG_DOCUMENTS_DIR="$HOME/Documents"
|
||||||
|
XDG_MUSIC_DIR="$HOME/Music"
|
||||||
|
XDG_PICTURES_DIR="$HOME/Pictures"
|
||||||
|
XDG_VIDEOS_DIR="$HOME/Videos"
|
||||||
@@ -1,6 +1,5 @@
|
|||||||
[user]
|
[user]
|
||||||
name = David Tomaschik
|
name = David Tomaschik
|
||||||
email = david@systemoverlord.com
|
|
||||||
signingKey = 0x5DEA789B
|
signingKey = 0x5DEA789B
|
||||||
|
|
||||||
[core]
|
[core]
|
||||||
@@ -66,3 +65,5 @@
|
|||||||
conflictstyle = diff3
|
conflictstyle = diff3
|
||||||
[mergetool]
|
[mergetool]
|
||||||
prompt = false
|
prompt = false
|
||||||
|
[include]
|
||||||
|
path = ~/.gitconfig.local
|
||||||
|
|||||||
@@ -13,5 +13,11 @@ export PATH="${PATH}:${GCL}/bin"
|
|||||||
source ${GCL}/completion.zsh.inc
|
source ${GCL}/completion.zsh.inc
|
||||||
|
|
||||||
which kubectl 2>/dev/null >&2 && \
|
which kubectl 2>/dev/null >&2 && \
|
||||||
source <(kubectl completion zsh) || \
|
function kubectl() {
|
||||||
|
if ! type __start_kubectl >/dev/null 2>&1; then
|
||||||
|
source <(command kubectl completion zsh)
|
||||||
|
fi
|
||||||
|
|
||||||
|
command kubectl "$@"
|
||||||
|
} || \
|
||||||
true
|
true
|
||||||
|
|||||||
@@ -34,6 +34,9 @@ function prompt_matir_setup {
|
|||||||
RPROMPT+='%? '
|
RPROMPT+='%? '
|
||||||
RPROMPT+='%{$reset_color%})'
|
RPROMPT+='%{$reset_color%})'
|
||||||
RPROMPT+='${PROMPT_VIMODE}'
|
RPROMPT+='${PROMPT_VIMODE}'
|
||||||
|
|
||||||
|
# Disable virtualenv's own python info
|
||||||
|
VIRTUAL_ENV_DISABLE_PROMPT="yes"
|
||||||
}
|
}
|
||||||
|
|
||||||
function zle-keymap-select {
|
function zle-keymap-select {
|
||||||
|
|||||||
@@ -66,7 +66,7 @@ install_dotfile_dir() {
|
|||||||
mkdir -p $(dirname "${TARGET}")
|
mkdir -p $(dirname "${TARGET}")
|
||||||
ln -s -f "${dotfile}" "${TARGET}"
|
ln -s -f "${dotfile}" "${TARGET}"
|
||||||
done
|
done
|
||||||
git submodule status -- "${SRCDIR}" 2>/dev/null | \
|
git -C "${BASEDIR}" submodule status -- "${SRCDIR}" 2>/dev/null | \
|
||||||
awk '{print $2}' | \
|
awk '{print $2}' | \
|
||||||
while read submodule ; do
|
while read submodule ; do
|
||||||
local FULLNAME="${BASEDIR}/${submodule}"
|
local FULLNAME="${BASEDIR}/${submodule}"
|
||||||
|
|||||||
BIN
private_dotfiles/config/gcloud/configurations/config_bsidessf
Normal file
BIN
private_dotfiles/config/gcloud/configurations/config_bsidessf
Normal file
Binary file not shown.
BIN
private_dotfiles/config/gcloud/configurations/config_default
Executable file
BIN
private_dotfiles/config/gcloud/configurations/config_default
Executable file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user