瀏覽代碼

only runs chsh if necessary, and -f now works to recompile everything

master
mort 9 年之前
父節點
當前提交
a490263813
共有 1 個檔案被更改,包括 4 行新增2 行删除
  1. 4
    2
      setup.sh

+ 4
- 2
setup.sh 查看文件

@@ -152,7 +152,7 @@ rm -fr "$HOME/assets"
cp -r assets "$HOME/assets"
echo "Done."

while getopts :m option; do
while getopts :m:f option; do
case "$option" in
m)
echo "Not switching mod and alt keys."
@@ -172,6 +172,8 @@ install_setup "sxhkd"
install_setup "i3wm"
install_setup "mrec"

sudo chsh "$USER" -s /bin/zsh
if [ "$SHELL" != "/bin/zsh" ]; then
sudo chsh "$USER" -s /bin/zsh
fi

echo "Everything set up!"

Loading…
取消
儲存