Last active
August 30, 2020 08:41
-
-
Save pleasemarkdarkly/73bed407e5f88c633bcafb78349ca322 to your computer and use it in GitHub Desktop.
Bash script 5.1 installer for Ubuntu 19.04 and macOS X.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://transfersh.pleasemarkdarkly.com/KvzPx/nano_install.sh | |
# gist-paste ./nano_install -u 73bed407e5f88c633bcafb78349ca322 | |
# | |
# https://gist.github.com/73bed407e5f88c633bcafb78349ca322 | |
# name="nano" | |
# this="http://bit.ly/39VJiLw" | |
# curl "$this" -O "$name"; chmod +x "$name" | |
install_nano () { | |
cd | |
echo "installing: mano 4.9.3" | |
sudo apt-get update -y | |
sudo apt install -y nano xz-utils build-essential libncursesw5-dev | |
# wget https://www.nano-editor.org/dist/v4/nano-4.4.tar.xz | |
wget https://www.nano-editor.org/dist/v4/nano-4.9.3.tar.gz | |
tar xvf nano-4.9.3.tar.gz | |
cd ./nano-4.9.3 | |
./configure --prefix=/usr \ | |
--sysconfdir=/etc \ | |
--enable-utf8 \ | |
--docdir=/usr/share/doc/nano-4.9.3 && \ | |
make && \ | |
make install && \ | |
install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/nano-4.9.3 | |
cd | |
/usr/bin/nano -h | |
rm -rvf nano-4.9.3 /bin/nano | |
ln -s /usr/bin/nano /bin/nano | |
echo "install syntax highlights" | |
curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh | |
# echo "alias pico=nano" >> ~/.zshrc | |
} | |
install_tmux () { | |
apt install tmux | |
git clone https://github.com/gpakosz/.tmux.git | |
ln -s -f .tmux/.tmux.conf | |
cp .tmux/.tmux.conf.local . | |
} | |
install_ohmyzsh () { | |
apt install zsh | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
} | |
install_powerlevel10k () { | |
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k | |
echo 'ZSH_THEME="powerlevel10k/powerlevel10k"' >> ~/.zshrc | |
} | |
main () { | |
install_nano | |
# install_tmux | |
# install_ohmyzsh | |
# install_powerlevel10k | |
# echo 'transfer(){ if [ $# -eq 0 ];then echo "No arguments specified.\nUsage:\n transfer <file|directory>\n ... | transfer <file_name>">&2;return 1;fi;if tty -s;then file="$1";file_name=$(basename "$file");if [ ! -e "$file" ];then echo "$file: No such file or directory">&2;return 1;fi;if [ -d "$file" ];then file_name="$file_name.zip" ,;(cd "$file"&&zip -r -q - .)|curl --progress-bar --upload-file "-" "https://transfersh.pleasemarkdarkly.com/$file_name"|tee /dev/null,;else cat "$file"|curl --progress-bar --upload-file "-" "https://transfersh.pleasemarkdarkly.com/$file_name"|tee /dev/null;fi;else file_name=$1;curl --progress-bar --upload-file "-" "https://transfersh.pleasemarkdarkly.com/$file_name"|tee /dev/null;fi;}' >> transfer.sh | |
# chmod +x ./transfer.sh | |
} | |
main "[@]" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://transfersh.pleasemarkdarkly.com/KvzPx/nano_install.sh | |
# gist-paste ./nano_install -u 73bed407e5f88c633bcafb78349ca322 | |
# | |
# https://gist.github.com/73bed407e5f88c633bcafb78349ca322 | |
# name="nano" | |
# this="http://bit.ly/39VJiLw" | |
# curl "$this" -O "$name"; chmod +x "$name" | |
alias update-this='gist-paste ./nano_install -u 73bed407e5f88c633bcafb78349ca322' | |
function update_this () { | |
gist-paste $0 -u 73bed407e5f88c633bcafb78349ca322 | |
} | |
install_nano () { | |
cd | |
echo "installing: nano 5.1" | |
sudo apt-get update -y | |
sudo apt install -y nano xz-utils build-essential libncursesw5-dev | |
wget https://www.nano-editor.org/dist/v5/nano-5.1.tar.gz | |
NANO=nano-5.1.tar.gz | |
VERSION=nano-5.1 | |
tar xvf "${NANO}" | |
cd ./nano-5.1 | |
./configure --prefix=/usr \ | |
--sysconfdir=/etc \ | |
--enable-utf8 \ | |
--docdir=/usr/share/doc/"${VERSION}" && \ | |
make && \ | |
make install && \ | |
install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/"${VERSION}" | |
cd | |
/usr/bin/nano -h | |
rm -rvf "${VERSION}" /bin/nano | |
ln -s /usr/bin/nano /bin/nano | |
echo "install syntax highlights" | |
curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh | |
# echo "alias pico=nano" >> ~/.zshrc | |
} | |
install_tmux () { | |
apt install tmux | |
git clone https://github.com/gpakosz/.tmux.git | |
ln -s -f .tmux/.tmux.conf | |
cp .tmux/.tmux.conf.local . | |
} | |
install_ohmyzsh () { | |
apt install zsh | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
} | |
install_powerlevel10k () { | |
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k | |
echo 'ZSH_THEME="powerlevel10k/powerlevel10k"' >> ~/.zshrc | |
} | |
function install_pushover () { | |
wget https://gist.githubusercontent.com/pleasemarkdarkly/a9761a738d8d69e2a319444c6ffdc478/raw/12be29b68040fd312996779be0dc250f68b9a282/pushover && chmod +x pushover && cp -v pushover /bin/bash | |
} | |
function install_root_backup () { | |
wget https://gist.githubusercontent.com/pleasemarkdarkly/4d49a7b93c2287f54c1d8d283479190e/raw/523c6a2c487856db11da5be9c4a79af886a84ef1/backup.sh && chmod +x backup.sh | |
} | |
main () { | |
install_nano | |
# install_tmux | |
# install_ohmyzsh | |
# install_powerlevel10k | |
# install_pushover | |
} | |
main "[@]" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://transfersh.pleasemarkdarkly.com/KvzPx/nano_install.sh | |
# gist-paste ./nano_install -u 73bed407e5f88c633bcafb78349ca322 | |
# | |
# https://gist.github.com/73bed407e5f88c633bcafb78349ca322 | |
# name="nano" | |
# this="http://bit.ly/39VJiLw" | |
# curl "$this" -O "$name"; chmod +x "$name" | |
alias update-this='gist-paste ./nano_install -u 73bed407e5f88c633bcafb78349ca322' | |
function update_this () { | |
gist-paste $0 -u 73bed407e5f88c633bcafb78349ca322 | |
} | |
install_nano () { | |
cd | |
echo "installing: nano 5.1" | |
sudo apt-get update -y | |
sudo apt install -y nano xz-utils build-essential libncursesw5-dev | |
wget https://www.nano-editor.org/dist/v5/nano-5.1.tar.gz | |
NANO=nano-5.1.tar.gz | |
VERSION=nano-5.1 | |
tar xvf "${NANO}" | |
cd ./nano-5.1 | |
./configure --prefix=/usr \ | |
--sysconfdir=/etc \ | |
--enable-utf8 \ | |
--docdir=/usr/share/doc/"${VERSION}" && \ | |
make && \ | |
make install && \ | |
install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/"${VERSION}" | |
cd | |
/usr/bin/nano -h | |
rm -rvf "${VERSION}" /bin/nano | |
ln -s /usr/bin/nano /bin/nano | |
echo "install syntax highlights" | |
curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh | |
# echo "alias pico=nano" >> ~/.zshrc | |
} | |
install_tmux () { | |
apt install tmux | |
git clone https://github.com/gpakosz/.tmux.git | |
ln -s -f .tmux/.tmux.conf | |
cp .tmux/.tmux.conf.local . | |
} | |
install_ohmyzsh () { | |
apt install zsh | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
} | |
install_powerlevel10k () { | |
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k | |
echo 'ZSH_THEME="powerlevel10k/powerlevel10k"' >> ~/.zshrc | |
} | |
function install_pushover () { | |
wget https://gist.githubusercontent.com/pleasemarkdarkly/a9761a738d8d69e2a319444c6ffdc478/raw/12be29b68040fd312996779be0dc250f68b9a282/pushover && chmod +x pushover && cp -v pushover /bin/bash | |
} | |
function install_root_backup () { | |
wget https://gist.githubusercontent.com/pleasemarkdarkly/4d49a7b93c2287f54c1d8d283479190e/raw/523c6a2c487856db11da5be9c4a79af886a84ef1/backup.sh && chmod +x backup.sh | |
} | |
main () { | |
install_nano | |
# install_tmux | |
# install_ohmyzsh | |
# install_powerlevel10k | |
# install_pushover | |
} | |
main "[@]" | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# https://transfersh.pleasemarkdarkly.com/KvzPx/nano_install.sh | |
# gist-paste ./nano_install -u 73bed407e5f88c633bcafb78349ca322 | |
# | |
# https://gist.github.com/73bed407e5f88c633bcafb78349ca322 | |
# name="nano" | |
# this="http://bit.ly/39VJiLw" | |
# curl "$this" -O "$name"; chmod +x "$name" | |
alias update-this='gist-paste ./nano_install -u 73bed407e5f88c633bcafb78349ca322' | |
function update_this () { | |
gist-paste $0 -u 73bed407e5f88c633bcafb78349ca322 | |
} | |
install_nano () { | |
cd | |
echo "installing: nano 5.1" | |
sudo apt-get update -y | |
sudo apt install -y nano xz-utils build-essential libncursesw5-dev | |
wget https://www.nano-editor.org/dist/v5/nano-5.1.tar.gz | |
NANO=nano-5.1.tar.gz | |
VERSION=nano-5.1 | |
tar xvf "${NANO}" | |
cd ./nano-5.1 | |
./configure --prefix=/usr \ | |
--sysconfdir=/etc \ | |
--enable-utf8 \ | |
--docdir=/usr/share/doc/"${VERSION}" && \ | |
make && \ | |
make install && \ | |
install -v -m644 doc/{nano.html,sample.nanorc} /usr/share/doc/"${VERSION}" | |
cd | |
/usr/bin/nano -h | |
rm -rvf "${VERSION}" /bin/nano | |
ln -s /usr/bin/nano /bin/nano | |
echo "install syntax highlights" | |
curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh | |
# echo "alias pico=nano" >> ~/.zshrc | |
} | |
install_tmux () { | |
apt install tmux | |
git clone https://github.com/gpakosz/.tmux.git | |
ln -s -f .tmux/.tmux.conf | |
cp .tmux/.tmux.conf.local . | |
} | |
install_ohmyzsh () { | |
apt install zsh | |
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | |
} | |
install_powerlevel10k () { | |
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k | |
echo 'ZSH_THEME="powerlevel10k/powerlevel10k"' >> ~/.zshrc | |
} | |
function install_pushover () { | |
wget https://gist.githubusercontent.com/pleasemarkdarkly/a9761a738d8d69e2a319444c6ffdc478/raw/12be29b68040fd312996779be0dc250f68b9a282/pushover && chmod +x pushover && cp -v pushover /bin/bash | |
} | |
function install_root_backup () { | |
wget https://gist.githubusercontent.com/pleasemarkdarkly/4d49a7b93c2287f54c1d8d283479190e/raw/523c6a2c487856db11da5be9c4a79af886a84ef1/backup.sh && chmod +x backup.sh | |
} | |
main () { | |
install_nano | |
# install_tmux | |
# install_ohmyzsh | |
# install_powerlevel10k | |
# install_pushover | |
} | |
main "[@]" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment