Skip to content

Instantly share code, notes, and snippets.

@unkmas
Last active April 3, 2023 09:33
Show Gist options
  • Save unkmas/6978663bac9fb30a224b997a18801db0 to your computer and use it in GitHub Desktop.
Save unkmas/6978663bac9fb30a224b997a18801db0 to your computer and use it in GitHub Desktop.

Это gist с инструкциями к моему видео про терминал

Iterm

Ссылка для скачивания https://iterm2.com

Zsh

Статья о крутых фичах zsh https://code.joejag.com/2014/why-zsh.html

Base 16

Репозиторий с темами для iterm2 https://github.com/chriskempson/base16-iterm2

Темы для VS Code https://marketplace.visualstudio.com/items?itemName=AndrsDC.base16-themes

Установка для vim:

mkdir -p ~/.vim/colors
cd ~/.vim/colors

// Если вы хотите eighties тему (в основном репозитории она плохая)
git clone https://github.com/lithammer/vim-eighties eighties
cp eighties/colors/eighties.vim .

// Если вы хотите другую base16-тему
git clone https://github.com/chriskempson/base16-vim.git base16
cp base16/colors/*.vim .

vim ~/.vimrc

Конфиг для vim:

let base16colorspace=256
colorscheme eighties
syntax on

Oh my zsh

Устанавливаем OMZ:

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

Моя тема для omz доступна по ссылке: https://gist.github.com/unkmas/10d3ab118ee1ac81532b7a02fb66eef7

Добавляем плагины:

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

vim ~/.zshrc

omz reload

В zshrc меняем строку с plugins:

plugins=(
        git
        colored-man-pages
        safe-paste
        zsh-syntax-highlighting
        zsh-autosuggestions
        history-substring-search
)

Exa

Если вы пользователь linux, то можете посмотреть инструкции по установке тут: https://the.exa.website

brew install exa

vim ~/.zshrc

В zshrc добавляем следующий алиас:

alias ll='exa --group-directories-first --long --all'

Httpie

Если вы пользователь linux, то можете посмотреть инструкции по установке тут: https://httpie.io/cli

brew install httpie
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment