9 Commits

Author SHA1 Message Date
David Tomaschik
7a5abd73cb Fix symlinks for submodules.
This fixes the creation of symlinks for submodules when
run from outside the repo.

Fixes #7.
2020-01-26 17:57:15 -08:00
David Tomaschik
07926d6673 Fix virtualenv formatting of prompt.
Fixes #11.
2020-01-26 16:10:27 -08:00
David Tomaschik
24690e8399 Bump gcloud sdk to 277. 2020-01-25 16:39:36 -08:00
David Tomaschik
2232dce811 Add a gitconfig.local file. 2020-01-19 19:18:41 -08:00
David Tomaschik
f6de62700a Add a gitroot alias. 2020-01-19 19:14:40 -08:00
David Tomaschik
01272f4474 Configure XDG user dirs. 2020-01-19 18:58:08 -08:00
David Tomaschik
e176b0c136 Add gcloud configurations. 2020-01-19 18:52:55 -08:00
David Tomaschik
67fad831e5 Update luksFormat alias. 2019-12-18 19:16:50 -08:00
David Tomaschik
048d7fb1ba Lazy load of kubectl. 2019-12-07 22:46:31 -08:00
10 changed files with 34 additions and 6 deletions

View File

@@ -138,7 +138,7 @@ case ${TOOL} in
makedest_or_die
gbase="https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/"
# 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
tar zxf /tmp/gcloud.tar.gz --strip-components=1 -C "${DESTDIR}"
rm /tmp/gcloud.tar.gz

View File

@@ -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$//'\'')"'
# 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
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"
# 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"

View 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"

View File

@@ -1,6 +1,5 @@
[user]
name = David Tomaschik
email = david@systemoverlord.com
signingKey = 0x5DEA789B
[core]
@@ -66,3 +65,5 @@
conflictstyle = diff3
[mergetool]
prompt = false
[include]
path = ~/.gitconfig.local

View File

@@ -13,5 +13,11 @@ export PATH="${PATH}:${GCL}/bin"
source ${GCL}/completion.zsh.inc
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

View File

@@ -34,6 +34,9 @@ function prompt_matir_setup {
RPROMPT+='%? '
RPROMPT+='%{$reset_color%})'
RPROMPT+='${PROMPT_VIMODE}'
# Disable virtualenv's own python info
VIRTUAL_ENV_DISABLE_PROMPT="yes"
}
function zle-keymap-select {

View File

@@ -66,7 +66,7 @@ install_dotfile_dir() {
mkdir -p $(dirname "${TARGET}")
ln -s -f "${dotfile}" "${TARGET}"
done
git submodule status -- "${SRCDIR}" 2>/dev/null | \
git -C "${BASEDIR}" submodule status -- "${SRCDIR}" 2>/dev/null | \
awk '{print $2}' | \
while read submodule ; do
local FULLNAME="${BASEDIR}/${submodule}"

Binary file not shown.