Compare commits

..

No commits in common. "6c14f3448426a43432e122c6d220a41ccfc72c1f" and "9472c48a0951433544dcc4d90303f680ef902fbd" have entirely different histories.

7 changed files with 13 additions and 19 deletions

2
.alias
View File

@ -11,7 +11,7 @@ alias cat="bat -pp"
alias code="code-oss" alias code="code-oss"
# dotfiles # dotfiles
alias dot="git --git-dir=$HOME/git/.dotfiles/ --work-tree=$HOME" alias dot="git --git-dir=$HOME/git/dotfiles/ --work-tree=$HOME"
# k8s # k8s
alias k="kubectl" alias k="kubectl"

View File

@ -1,5 +1,5 @@
# alias for kubectl to k # alias for kubectl to k
command -v 2>&1 >/dev/null kubectl && source <(kubectl completion bash) source <(kubectl completion bash)
complete -o default -F __start_kubectl k complete -o default -F __start_kubectl k

View File

@ -28,4 +28,4 @@ alias xcln="xr -oO"
# Docker # Docker
alias dc=docker-compose alias dc=docker-compose
command -v 2>&1 >/dev/null thefuck && eval "$(thefuck --alias)" eval "$(thefuck --alias)"

View File

@ -1,8 +1,5 @@
# dotfiles # dotfiles
`mkdir -p git/.dotfiles && git init --bare git/.dotfiles`
`cd $HOME && git --git-dir=$HOME/git/.dotfiles --work-tree`
Contains .dotfiles for my debian and void distros. Contains .dotfiles for my debian and void distros.
Clone and `ln -s` the applicable files to the distro agnotic filenames. e.g.: Clone and `ln -s` the applicable files to the distro agnotic filenames. e.g.:

View File

@ -47,7 +47,4 @@ echo "${XDG_CONFIG_HOME}" >"${XDG_DATA_HOME}"/env/XDG_CONFIG_HOME
echo "${XDG_DATA_HOME}" >"${XDG_DATA_HOME}"/env/XDG_DATA_HOME echo "${XDG_DATA_HOME}" >"${XDG_DATA_HOME}"/env/XDG_DATA_HOME
echo "${SVDIR}" >"${SVDIR}"/env/SVDIR echo "${SVDIR}" >"${SVDIR}"/env/SVDIR
# gnome
for i in $(seq 1 9); do gsettings set org.gnome.shell.keybindings switch-to-application-$i []; done

6
void-install/sv/runsvdir/finish Executable file → Normal file
View File

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
ZUSER=@USER@ user=@USER@
sv -w600 force-stop /home/$ZUSER/sv/* sv -w600 force-stop /home/$user/sv/*
sv exit /home/$ZUSER/sv/* sv exit /home/$user/sv/*

14
void-install/sv/runsvdir/run Executable file → Normal file
View File

@ -1,13 +1,13 @@
#!/bin/sh #!/bin/sh
ZUSER=@USER@ USER=@USER@
export HOME="/home/$ZUSER" HOME="/home/$USER"
GROUPS=$(id -Gn "$ZUSER" | tr ' ' ':') GROUPS=$(id -Gn "$USER" | tr ' ' ':')
SVDIR="$HOME/sv" SVDIR="$HOME/sv"
ID=$(id -u $ZUSER) ID=$(id -u $USER)
[ ! -d /run/user/$ID ] && \ [ ! -d /run/user/$ID ] && \
mkdir -p /run/user/$ZUSER && \ mkdir -p /run/user/$USER && \
chown $ZUSER:$ZUSER /run/user/$ZUSER chown $USER:$USER /run/user/$USER
exec chpst -u "$ZUSER:$GROUPS" sh -l -c "exec runsvdir $SVDIR $ZUSER '...'" $ZUSER exec chpst -u "$USER:$GROUPS" sh -l -c "exec runsvdir $SVDIR $USER '...'" $USER