Opengist

Explore

  • All gists
  • Topics
  • Users
Give feedback on the new UI Powered by Opengist ⋅ 903ms

user:thomas gists created by user

title:mygist gists with given title

description:sync gists with given description

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

all:systemctl search all fields

Login
h

homebrew

Recently created Least recently created Recently updated Least recently updated

timmy / 安裝 ChromeDriver

Last active 5 hours ago chromedriver homebrew installation macos

使用 Homebrew 安裝 ChromeDriver,方便管理和更新版本。

0 0 0 1
1 brew install --cask chromedriver

timmy / 使用 pyenv 管理 Python 版本

Last active 5 hours ago homebrew pyenv python version-management

透過 pyenv 安裝與管理多個 Python 版本,輕鬆切換和配置不同專案的 Python 環境。

1 0 0 3
1 # 使用 Homebrew 安裝 pyenv,這是一個 Python 版本管理工具
2 brew install pyenv
3
4 # 從 pyenv.run 下載並執行安裝腳本,來安裝 pyenv
5 curl https://pyenv.run | bash
6
7 # 設定 PYENV_ROOT 環境變數,指向 pyenv 的安裝目錄
8 export PYENV_ROOT="$HOME/.pyenv"
9
10 # 將 pyenv 的二進制目錄加入 PATH 環境變數,使其可執行

timmy / Mac 自動設置 iTerm2 路徑

Last active 5 hours ago automation customization homebrew iterm2 macos shell-script

自動檢測 macOS 並設置 iTerm2 偏好設定資料夾為自訂路徑。

0 0 0 1
1 #!/bin/sh
2
3 # 取得作業系統類型(例如 Darwin 表示 macOS)
4 system_type=$(uname -s)
5
6 # 如果是 macOS 系統,才執行以下區塊
7 if [ "$system_type" = "Darwin" ]; then
8
9 # 這裡可以考慮加入使用 Homebrew 安裝 iTerm2 的指令(例如 brew install --cask iterm2)
10 # 不過目前尚未實作