Skip to content

Instructions & configurations for my development environment

Notifications You must be signed in to change notification settings

smyrnakis/DevEnv-configuration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

General info

Based on work and code from various projects:


Terminal configuration

> Windows

Chocolatey

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))

ConEmu & Windows Terminal

choco install ConEmu
choco install microsoft-windows-terminal

Configure Powershell

Installation of posh-git and oh-my-posh.

Install-Module posh-git -Scope CurrentUser
Install-Module oh-my-posh -Scope CurrentUser
Set-Prompt
Set-Theme Paradox

To see the theme settings, use:

$ThemeSettings

To see colors and theme colors, use:

Show-ThemeColors
Show-Colors

To set the branch symbol, use:

$ThemeSettings.GitSymbols.BranchSymbol = [char]::ConvertFromUtf32(0xE0A0)

Hide your username@domain when not in a virtual machine for the Agnoster, Fish, Honukai, Paradox and Sorin themes:

$DefaultUser = 'username'

Configure Powershell PROFILE

if (!(Test-Path -Path $PROFILE )) { New-Item -Type File -Path $PROFILE -Force }
notepad $PROFILE

Add the bellow in $PROFILE:

Import-Module posh-git
Import-Module oh-my-posh
Set-Theme Paradox

To reload Powershell profile, run:

. $PROFILE

Configure ConEmu

Settings --> Fonts : Meslo


> Mac

iTerm2

https://github.com/zsh-users/zsh-autosuggestions


VIM

Installation

> Windows

choco install vim

> Mac

Cheatsheet

w: next word b: previous word gg: go to the top of the file G: go to the bottom of the file :%d: delete every line =G: fix indentation in all document (only if cursor is moved on top) S: start writing on a line at correct indentation > <: indent/unindent multiple lines (in visual line mode) >> <<: indent/unindent a line :tabnew creates a new tab gt go to next tab gT go to previous tab :tabo close all other tabs besides the active one

Plugins


GIT

Installation

> Windows

> Mac

Aliaces

alias.st status
alias.lga log --all --decorate --oneline --graph
alias.lg log --decorate --oneline --graph
alias.lgg log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --branches
alias.pom push origin master
alias.poh push origin $(git rev-parse --abbrev-ref HEAD)
alias.amn commit --amend --no-edit
alias.am commit --amend
alias.ca commit -am
alias.cm commit -m

MS Visual Studio code

Installation

> Windows

> Mac

Settings sync

  1. Install the Settings sync plugin.
  2. Use the gist ID 508d76ad7d54c9a1b6cbc3c1c71e7343 https://gist.github.com/smyrnakis/508d76ad7d54c9a1b6cbc3c1c71e7343
  3. Time and restarts of VS Code will be needed!

About

Instructions & configurations for my development environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages