From e0b085b32c0f0835b6ad5117026990b41f85c494 Mon Sep 17 00:00:00 2001 From: shylinux Date: Fri, 10 Mar 2023 10:03:39 +0800 Subject: [PATCH] opt some --- etc/conf/bash_local.sh | 5 ++++- src/main.shy | 11 +++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/etc/conf/bash_local.sh b/etc/conf/bash_local.sh index f8f9fef5..6c3f96b0 100644 --- a/etc/conf/bash_local.sh +++ b/etc/conf/bash_local.sh @@ -6,8 +6,11 @@ touch ~/.hushlogin export CTX_ROOT=${CTX_ROOT:=~/contexts} [ "$PWD" = "$HOME" ] && cd ~/contexts +[ "$PWD" = "/" ] && cd ~/contexts -export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin +if uname -s|grep -v MINGW &>/dev/null; then + export PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin +fi ish_sys_path_load ish_sys_cli_prompt diff --git a/src/main.shy b/src/main.shy index a77da31a..6cba99ae 100644 --- a/src/main.shy +++ b/src/main.shy @@ -4,6 +4,17 @@ refer ` 文档 https://contexts.com.cn/help/ 源码 https://shylinux.com/x/contexts ` +chapter "MacOS" +chain ` +Trackpad +Keyboard +Finder +Terminal +Safari +Dock +contexts +sshd +` chapter "最近" section "windows"