Compare commits
3 Commits
9472c48a09
...
6c14f34484
Author | SHA1 | Date |
---|---|---|
fanyx | 6c14f34484 | |
fanyx | 7dc0c5cb23 | |
fanyx | 20cc076a54 |
2
.alias
2
.alias
|
@ -11,7 +11,7 @@ alias cat="bat -pp"
|
|||
alias code="code-oss"
|
||||
|
||||
# dotfiles
|
||||
alias dot="git --git-dir=$HOME/git/dotfiles/ --work-tree=$HOME"
|
||||
alias dot="git --git-dir=$HOME/git/.dotfiles/ --work-tree=$HOME"
|
||||
|
||||
# k8s
|
||||
alias k="kubectl"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# alias for kubectl to k
|
||||
|
||||
source <(kubectl completion bash)
|
||||
command -v 2>&1 >/dev/null kubectl && source <(kubectl completion bash)
|
||||
|
||||
complete -o default -F __start_kubectl k
|
||||
|
|
|
@ -28,4 +28,4 @@ alias xcln="xr -oO"
|
|||
# Docker
|
||||
alias dc=docker-compose
|
||||
|
||||
eval "$(thefuck --alias)"
|
||||
command -v 2>&1 >/dev/null thefuck && eval "$(thefuck --alias)"
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
# 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.
|
||||
Clone and `ln -s` the applicable files to the distro agnotic filenames. e.g.:
|
||||
|
||||
|
|
|
@ -47,4 +47,7 @@ echo "${XDG_CONFIG_HOME}" >"${XDG_DATA_HOME}"/env/XDG_CONFIG_HOME
|
|||
echo "${XDG_DATA_HOME}" >"${XDG_DATA_HOME}"/env/XDG_DATA_HOME
|
||||
echo "${SVDIR}" >"${SVDIR}"/env/SVDIR
|
||||
|
||||
# gnome
|
||||
|
||||
for i in $(seq 1 9); do gsettings set org.gnome.shell.keybindings switch-to-application-$i []; done
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
user=@USER@
|
||||
ZUSER=@USER@
|
||||
|
||||
sv -w600 force-stop /home/$user/sv/*
|
||||
sv exit /home/$user/sv/*
|
||||
sv -w600 force-stop /home/$ZUSER/sv/*
|
||||
sv exit /home/$ZUSER/sv/*
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
#!/bin/sh
|
||||
|
||||
USER=@USER@
|
||||
HOME="/home/$USER"
|
||||
GROUPS=$(id -Gn "$USER" | tr ' ' ':')
|
||||
ZUSER=@USER@
|
||||
export HOME="/home/$ZUSER"
|
||||
GROUPS=$(id -Gn "$ZUSER" | tr ' ' ':')
|
||||
SVDIR="$HOME/sv"
|
||||
ID=$(id -u $USER)
|
||||
ID=$(id -u $ZUSER)
|
||||
|
||||
[ ! -d /run/user/$ID ] && \
|
||||
mkdir -p /run/user/$USER && \
|
||||
chown $USER:$USER /run/user/$USER
|
||||
mkdir -p /run/user/$ZUSER && \
|
||||
chown $ZUSER:$ZUSER /run/user/$ZUSER
|
||||
|
||||
exec chpst -u "$USER:$GROUPS" sh -l -c "exec runsvdir $SVDIR $USER '...'" $USER
|
||||
exec chpst -u "$ZUSER:$GROUPS" sh -l -c "exec runsvdir $SVDIR $ZUSER '...'" $ZUSER
|
||||
|
|
Loading…
Reference in New Issue