sh 此脚本在大多数Linux系统上从源代码下载并安装fish shell。
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 此脚本在大多数Linux系统上从源代码下载并安装fish shell。相关的知识,希望对你有一定的参考价值。
#!/bin/bash
# @Author: cody kochmann
# @Date: 2018-02-23 16:54:37
# @Last Modified by: cody kochmann
# @Last Modified time: 2018-02-26 12:53:05
# use this script to download and install fish on your system from source
version='2.7.1'
dir_name="fish-${version}"
tar_name="${dir_name}.tar.gz"
function untar(){
tar --extract --gzip --verbose --file "$@"
}
wget "https://github.com/fish-shell/fish-shell/releases/download/${version}/${tar_name}"
untar "$tar_name"
rm -v "$tar_name"
pushd "$dir_name"
./configure && make && make install
popd
unset version
unset dir_name
unset tar_name
unset untar
以上是关于sh 此脚本在大多数Linux系统上从源代码下载并安装fish shell。的主要内容,如果未能解决你的问题,请参考以下文章