sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh
| #!/bin/bash | |
| # Update and install required packages | |
| sudo apt-get update | |
| sudo apt install -y zsh-autosuggestions zsh-syntax-highlighting zsh fzf | |
| # Install Oh My Zsh non-interactively (with auto-answers) | |
| # Use RUNZSH=no to prevent launching zsh after install | |
| # Use CHSH=yes to automatically change the shell | |
| sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended | 
| # Fish shell | |
| egrep "^export " ~/.bash_profile | while read e | |
| set var (echo $e | sed -E "s/^export ([A-Z_]+)=(.*)\$/\1/") | |
| set value (echo $e | sed -E "s/^export ([A-Z_]+)=(.*)\$/\2/") | |
| # remove surrounding quotes if existing | |
| set value (echo $value | sed -E "s/^\"(.*)\"\$/\1/") | |
| if test $var = "PATH" | 
| // change this variable to change timeout for async scroll load | |
| var TIMEOUT_IN_MS = 1000 | |
| // script from https://gist.github.com/xavhan/87717da0217b9b8299df | |
| // start from www.shazam.com/myshazam | |
| // print all shazam songs loaded on the page | |
| // TODO: Change format to JSON | |
| function printShazamSongs(){ | |
| $(".ti__details").each(function(i){ | |
| var artist = $(this).find(".ti__artist meta").attr("content"); |