Based on work and code from various projects:
- https://github.com/JanDeDobbeleer/oh-my-posh
- https://gist.github.com/JanDeDobbeleer/71c9f1361a562f337b855b75d7bbfd28
- https://github.com/ryanoasis/nerd-fonts
- https://github.com/ohmyzsh/ohmyzsh
- https://medium.com/swlh/power-up-your-terminal-using-oh-my-zsh-iterm2-c5a03f73a9fb
- https://medium.com/ayuth/iterm2-zsh-oh-my-zsh-the-most-power-full-of-terminal-on-macos-bdb2823fb04c
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'))
choco install ConEmu
choco install microsoft-windows-terminal
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'
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
Settings --> Fonts : Meslo
https://github.com/zsh-users/zsh-autosuggestions
choco install vim
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
- vim-plug plugin manager
- https://vimawesome.com/ collection of Vim plugins
- vim-fugitive git plugin for Vim
- auto-pairs insert or delete brackets, parens, quotes in pair
- https://vimawesome.com/
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
- Install the Settings sync plugin.
- Use the gist ID
508d76ad7d54c9a1b6cbc3c1c71e7343
https://gist.github.com/smyrnakis/508d76ad7d54c9a1b6cbc3c1c71e7343 - Time and restarts of VS Code will be needed!