Skip to content

Instantly share code, notes, and snippets.

@ashish-ad
Last active May 1, 2022 08:12
Show Gist options
  • Save ashish-ad/2de76dd76c31cb8ce091a2c66f425cda to your computer and use it in GitHub Desktop.
Save ashish-ad/2de76dd76c31cb8ce091a2c66f425cda to your computer and use it in GitHub Desktop.
Customizing terminal
#! /bin/bash
# This will terminate the script if the script fails in
# between somewhere
set -e
# This will install the ZSH in the system
sudo apt install zsh
# This will change the from BASH to ZSH
chsh -s `which zsh`
# Install brew Package manager
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/$(USER)/.zprofile
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/$(USER)/.zshrc
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
# Install Fuzzy finder for commands, to use this command just type ctrl+r.
brew install fzf
# Install ZSHautosuggestion
brew install zsh-autosuggestions
# add the source directory of zsh-autosuggestion to .zshrc
echo '/home/linuxbrew/.linuxbrew/share/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc
# Install Oh My ZSH
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

This is a gist for Configuring SHELL from BASH to ZSH

First Download the gist and then use the below commands

chmode u+x Configure_script.sh
sh Configure_script.sh

or

chmode u+x Configure_script.sh
./Configure_script.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment