feat(install): 添加安装脚本
This commit is contained in:
parent
b6ff344e7b
commit
661bd5c445
32
install.sh
Executable file
32
install.sh
Executable file
@ -0,0 +1,32 @@
|
||||
path=$PWD
|
||||
echo $path
|
||||
|
||||
make_st() {
|
||||
cd ./st/
|
||||
make & sudo make install
|
||||
cd $path
|
||||
}
|
||||
|
||||
make_dwm() {
|
||||
cd ./dwm/
|
||||
make
|
||||
sudo make install
|
||||
sudo mkdir /usr/share/xsessions/
|
||||
sudo cp ./desktop/dwm.desktop /usr/share/xsessions/
|
||||
cd $path
|
||||
}
|
||||
|
||||
make_slstatus() {
|
||||
cd ./slstatus/
|
||||
make && sudo make install
|
||||
cd $path
|
||||
}
|
||||
|
||||
ln_script() {
|
||||
ln -s $PWD/scripts ~/.dwm
|
||||
}
|
||||
|
||||
make_st
|
||||
make_dwm
|
||||
make_slstatus
|
||||
ln_script
|
Reference in New Issue
Block a user