Compare commits
3 Commits
689b9d2d3c
...
4dc445c411
Author | SHA1 | Date |
---|---|---|
fanyx | 4dc445c411 | |
fanyx | dbd38ff226 | |
fanyx | 29fb1a20f5 |
|
@ -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
3
.vimrc
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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/*
|
||||
|
|
Loading…
Reference in New Issue