Git编译安装

1.安装依赖 sudo apt install dh-autoreconf libcurl4-gnutls-dev libexpat1-dev gettext libz-dev libssl-dev make 2.下载git源码 wget https://www.kernel.org/pub/software/scm/git/git-2.46.0.tar.gz -O git.tar.gz 3.解压缩源码 tar -zxf git.tar.gz cd git-* 4.编译安装git make prefix=/usr/local all sudo make prefix=/usr/local install 5.验证安装 git --version

August 6, 2024 · 1 min · ming

Fish-Shell编译安装

1.安装依赖 sudo apt update sudo apt install build-essential cmake ncurses-dev 2.下载fish wget https://github.com/fish-shell/fish-shell/releases/download/3.7.1/fish-3.7.1.tar.xz tar -xf fish-3.7.1.tar.xz cd fish-3.7.1 3.编译安装 Fish make sudo make install 4.验证安装 fish --version 5.设置fish为默认 shell 确认 Fish 的路径 which fish 6.将Fish路径添加到 /etc/shells echo "/usr/bin/fish" | sudo tee -a /etc/shells 7.更改默认 shell chsh -s /usr/local/bin/fish 8.重新登录 退出当前会话并重新登录,或者重启终端,以使更改生效 9.验证更改 echo $SHELL

August 6, 2024 · 1 min · ming

Fish-Shell编译安装

1.安装依赖 sudo apt update sudo apt install build-essential cmake ncurses-dev 2.下载fish wget https://github.com/fish-shell/fish-shell/releases/download/3.7.1/fish-3.7.1.tar.xz tar -xf fish-3.7.1.tar.xz cd fish-3.7.1 3.编译安装 Fish make sudo make install 4.验证安装 fish --version 5.设置fish为默认 shell 确认 Fish 的路径 which fish 6.将Fish路径添加到 /etc/shells echo "/usr/bin/fish" | sudo tee -a /etc/shells 7.更改默认 shell chsh -s /usr/local/bin/fish 8.重新登录 退出当前会话并重新登录,或者重启终端,以使更改生效 9.验证更改 echo $SHELL

August 6, 2024 · 1 min · ming

Tmux编译安装

1.准备编译环境和依赖项 编译工具(如make、gcc等) libevent 库及其开发文件 ncurses 库及其开发文件 bison 库及其开发文件 2.安装依赖 sudo apt update sudo apt install -y build-essential libevent-dev ncurses-dev bison 3.下载tmux wget https://github.com/tmux/tmux/releases/download/3.4/tmux-3.4.tar.gz tar xf tmux-3.4.tar.gz cd tmux-3.4 4.编译和安装 ./configure make sudo make install 5.验证安装 tmux -V 6.设置tmux配置文件(可选) 可以创建一个自定义的tmux配置文件 ~/.tmux.conf 来设置个性化的tmux配置选项

August 5, 2024 · 1 min · ming