## Remote package repositoriessrc/gzopenwrt_corehttps://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/24.10.5/targets/x86/64/packagessrc/gzopenwrt_basehttps://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/24.10.5/packages/x86_64/basesrc/gzopenwrt_kmodshttps://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/24.10.5/targets/x86/64/kmods/6.6.119-1-484466e2719a743506c36b4bb2103582src/gzopenwrt_lucihttps://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/24.10.5/packages/x86_64/lucisrc/gzopenwrt_packageshttps://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/24.10.5/packages/x86_64/packagessrc/gzopenwrt_routinghttps://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/24.10.5/packages/x86_64/routingsrc/gzopenwrt_telephonyhttps://mirrors.tuna.tsinghua.edu.cn/openwrt/releases/24.10.5/packages/x86_64/telephony# passwall2src/gzpasswall_lucihttps://master.dl.sourceforge.net/project/openwrt-passwall-build/releases/packages-24.10/x86_64/passwall_lucisrc/gzpasswall_packageshttps://master.dl.sourceforge.net/project/openwrt-passwall-build/releases/packages-24.10/x86_64/passwall_packagessrc/gzpasswall2https://master.dl.sourceforge.net/project/openwrt-passwall-build/releases/packages-24.10/x86_64/passwall2## This is the local package repository, do not remove!srcimagebuilderfile:packages#option check_signature
Working with multiple GitHub accounts on the same machine can be tricky, but we can automate account switching when changing workspaces. Here’s my solution using Fish Shell and Direnv.
Prerequisites
Install direnv, this handy tool automatically loads environment variables when you cd into directories.
The Setup
Add this function to your Fish Shell configuration:
function __gh_auth_switch_gh_account --on-variable GH_ACCOUNTiftest -n "$GH_ACCOUNT"gh auth switch --user "$GH_ACCOUNT"endend
How it works
Let’s break down the snippet:
--on-variable tells Fish Shell to run this function when the variable GH_ACCOUNT changes value.
test -n $GH_ACCOUNT returns true if the length of GH_ACCOUNT is non-zero.
gh auth switch --user "$GH_ACCOUNT" switches the active account to $GH_ACCOUNT.
For example, if we need to switch to gh-user-1 under path/to/company/ . We can add a .envrc file under path/to/company:
export GH_ACCOUNT=gh-user-1
When we cd into path/to/company/project1, direnv will set the GH_ACCOUNT variable automatically, and the callback function __gh_auth_switch_gh_account will be invoked by the Fish Shell to make gh-user-1 active.