Compare commits

..

3 Commits

Author SHA1 Message Date
fanyx 4dc445c411 correct sed 2022-10-16 13:53:50 +02:00
fanyx dbd38ff226 set noexpandtab 2022-10-16 13:53:50 +02:00
fanyx 29fb1a20f5 add co and cn aliases 2022-10-16 13:53:50 +02:00
4 changed files with 10 additions and 7 deletions

View File

@ -3,6 +3,8 @@
name = fanyx
[alias]
co = checkout
cn = checkout -b
l = log --pretty='format:%h %G? %s%d' -n20 --graph
tags = tag -l
branches = branch -a

3
.vimrc
View File

@ -7,7 +7,8 @@ set autoindent
" set filetype indent on
" Tab width
set expandtab
" set expandtab
set noexpandtab
set smarttab
set tabstop=4
set shiftwidth=4

View File

@ -4,11 +4,11 @@
# drop available services in ~/.config/sv
# and link to ~/sv to enable them
user= # insert your username here
sed -i -e "s/\@USER\@/$user/g" sv/runsvdir/run
user=
install -d /etc/sv/runsvdir-$user
install -m755 sv/runsvdir/run /etc/sv/runsvdir-$user/run
sed -i -e "s/\@USER\@/$user/g" /etc/sv/runsvdir-$user/run
install -m755 sv/runsvdir/finish /etc/sv/runsvdir-$user/finish
sed -i -e "s/\@USER\@/$user/g" /etc/sv/runsvdir-$user/finish
ln -sf /run/runit/supervise.runsvdir-$user /etc/sv/runsvdir-$user/supervise

View File

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