Skip to content

Instantly share code, notes, and snippets.

@koderhun
Last active February 5, 2025 06:59
Show Gist options
  • Save koderhun/2b1a68566e116b95da644ad364949ca6 to your computer and use it in GitHub Desktop.
Save koderhun/2b1a68566e116b95da644ad364949ca6 to your computer and use it in GitHub Desktop.
Настройка окружения для разработки
# EditorConfig файл
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.{js,jsx,ts,tsx,css,scss,html}]
max_line_length = 80
{
"printWidth": 80,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false,
"jsxBracketSameLine": true,
"tabWidth": 2,
"semi": false
}

Настройка окружения для локальной разработаки

Настройки у этих ребят могут поменяться так что лучше копировать ссылки прямо из их документации

NVM

https://github.com/nvm-sh/nvm?tab=readme-ov-file#install--update-script

Если понадобится .nvmrc

https://github.com/nvm-sh/nvm?tab=readme-ov-file#bash

PNPM

https://pnpm.io/installation#on-posix-systems

Добавить alias в .bashrc

# git aliases
alias gss='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gcm='git commit -am '
alias gd='git diff'
alias gco='git checkout '
alias gk='gitk --all&'
alias gx='gitx --all'
alias gf='git fetch --prune '
alias gp='gf && git pull '
alias gm='git merge origin/master '
alias gpm='gp && gm'
alias gpo='gf && git push origin '

alias got='git '
alias get='git '

#npm aliases
alias ni='npm install '
alias ns='npm start '
alias nd='npm run dev '
alias nb='npm run build '

#pnpm
alias pi='pnpm install'
alias pd='pnpm dev'

#system alias
alias up='sudo aptitude update && sudo aptitude upgrade'

Так же заменить строку

PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '

на

PS1='\[\033[01;34m\]\w\[\033[00m\] $ '

Это для того чтобы длинна приветственной строки была меньше

Пакеты которые необходимо установить

sudo apt install aptitude android-tools-adb git wget fastboot audacious preload -y &&
flatpak install flathub org.telegram.desktop -y &&
sudo snap install mattermost-desktop figma-linux gimp libreoffice

Обновление папок по умолчанию

mkdir downloads templeats documents desktop pictures musics videos share

Comments are disabled for this gist.