Skip to content

gaelgoth/my-terminal-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Set up bash

Set up Oh-my-zsh

Install zsh and python3-pygments (a generic syntax highlighter suitable) packages

sudo apt install zsh python3-pygments

Install oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Useful plugins

Syntax highlighting,auto-suggestion & you-should-use

# Install zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
# Install zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
# Install you-should-use
git clone https://github.com/MichaelAquilina/zsh-you-should-use.git $ZSH_CUSTOM/plugins/you-should-use

McFly (Fly through your shell history)

curl -LSfs https://raw.githubusercontent.com/cantino/mcfly/master/ci/install.sh | sh -s -- --git cantino/mcfly

Add the following to the end of ~/.zshrc

eval "$(mcfly init zsh)"

Edit ~/.zshrc and add cool plugins

# Update plugins
vim ~/.zshrc
# Add this list of useful plugins 
plugins=(z git ssh-agent docker docker-compose kubectl oc helm terraform colorize ubuntu ng npm you-should-use zsh-autosuggestions zsh-syntax-highlighting)

Save and apply changes

source ~/.zshrc 
or
code ~/.zshrc

Set a theme to your bash (or leave it with default value)

vim ~/.zshrc
ZSH_THEME="amuse"

File ~/.zshrc result

export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="amuse"
# zstyle ':omz:update' mode reminder  # just remind me to update when it's time
zstyle :omz:plugins:ssh-agent identities ~/.ssh/{id_rsa,github} # add several keys to ssh-agent
ENABLE_CORRECTION="true"
plugins=(z git ssh-agent docker docker-compose kubectl oc helm terraform colorize ubuntu ng npm you-should-use zsh-autosuggestions zsh-syntax-highlighting)
source $ZSH/oh-my-zsh.sh

# User configuration
eval "$(mcfly init zsh)"

Set up Windows Terminal

Other theme: https://windowsterminalthemes.dev/

add One Half Dark theme in settings.json (Latest version of Windows Terminal already has One Half Dark theme)

        {
            "name": "One Half Dark",
            "background": "#282C34",
            "black": "#282C34",
            "blue": "#61AFEF",
            "brightBlack": "#5A6374",
            "brightBlue": "#61AFEF",
            "brightCyan": "#56B6C2",
            "brightGreen": "#98C379",
            "brightPurple": "#C678DD",
            "brightRed": "#E06C75",
            "brightWhite": "#DCDFE4",
            "brightYellow": "#E5C07B",
            "cursorColor": "#FFFFFF",
            "cyan": "#56B6C2",
            "foreground": "#DCDFE4",
            "green": "#98C379",
            "purple": "#C678DD",
            "red": "#E06C75",
            "selectionBackground": "#FFFFFF",
            "white": "#DCDFE4",
            "yellow": "#E5C07B"
        },

Set One Half Dark and JetBrains Mono font

download [JetBrains Nerd Font](https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/JetBrainsMono/Ligatures/Regular/complete/JetBrains%20Mono%20Regular%20Nerd%20Font%20Complete.ttf)
Then set font in <distro> -> appearance -> theme -> One Half Dark 
Then set font in <distro> -> appearance -> font -> select JetBrains Mono 

Set up VSCode

Add bracket pair colorization

  1. Open Settings

  2. find Pair

  3. Set True bracketPairs

Install Atom One Dark Theme : Atom One Dark Theme - Visual Studio Marketplace

Add custom configuration :

{
    "security.workspace.trust.untrustedFiles": "open",
    "editor.bracketPairColorization.enabled": true,
    "editor.guides.bracketPairs": true,
    "workbench.colorTheme": "Atom One Dark",
    "editor.fontFamily": "JetBrains Mono,Consolas, 'Courier New', monospace",
    "editor.fontSize": 13,
    "editor.fontWeight": "300",
    "editor.fontLigatures": true,
    "workbench.colorCustomizations" : {
        //https://glitchbone.github.io/vscode-base16-term/#/gruvbox-dark-soft
        "terminal.background":"#35364d",
    },
} 

Add custom shortcuts (switch to prompt terminal):

// Place your key bindings in this file to override the defaults
[
// Toggle between terminal and editor focus
{ "key": "ctrl+[IntlBackslash]", "command": "workbench.action.terminal.focus"},
]

Useful VSCode plugins

Debian/Ubuntu set up

Homebrew

Install Homebrew on Linux : https://brew.sh/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published