π½
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # DLG Zsh Environment β WSL Setup Script (no Homebrew) | |
| # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # Usage: chmod +x install-zsh-wsl.sh && ./install-zsh-wsl.sh | |
| # | |
| # One-liner (run from anywhere): | |
| # bash <(curl -sL <YOUR_GIST_RAW_URL>) | |
| # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| set -e |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DLG Zsh Environment - Mac Setup Script | |
| #!/bin/bash | |
| # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # DLG Zsh Environment β Mac Setup Script | |
| # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # Usage: chmod +x install-zsh-setup.sh && ./install-zsh-setup.sh | |
| # | |
| # One-liner (run from anywhere): | |
| # bash <(curl -sL https://gist.githubusercontent.com/dorlugasigal/97d4f7f8d4f0c1acc31a94a2b103d55d/raw/install-zsh-setup%201.sh) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Requires -Version 5.1 | |
| # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # DLG PowerShell Environment β Windows Setup Script | |
| # ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # Usage: Run in PowerShell as Administrator (for font install) | |
| # Set-ExecutionPolicy Bypass -Scope Process -Force | |
| # .\install-pwsh-setup.ps1 | |
| # | |
| # One-liner (run from anywhere): | |
| # Set-ExecutionPolicy Bypass -Scope Process -Force; iex (iwr -UseBasicParsing 'https://gist.githubusercontent.com/dorlugasigal/15ae6fa54e1bd03c981c446cc394f85f/raw/install-pwsh-setup.ps1').Content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Collections; | |
| using BenchmarkDotNet.Attributes; | |
| using BenchmarkDotNet.Running; | |
| // Console.WriteLine($"LINQ: {Enumerable.Select(source, i => i * 2).Sum()}"); | |
| // Console.WriteLine($"COMPILER: {SelectCompiler(source, i => i * 2).Sum()}"); | |
| // Console.WriteLine($"MANUAL: {SelectManual(source, i => i * 2).Sum()}"); | |
| // FOR PROFILING |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # personalizedΒ | |
| alias g='git' | |
| alias main='git checkout main' | |
| alias master='git checkout master'alias lc='clear && ls' | |
| alias cl='clear && ls' | |
| alias gb='git checkout -b' | |
| alias gitreset='git checkout main; git branch | grep -v \* | xargs git branch -D' | |
| alias commit='comm' | |
| comm(){ | |
| git add .;Β Β Β git commit -m "$@"; git push -u origin HEAD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #### user interface #### | |
| Import-Module Terminal-Icons | |
| oh-my-posh --init --shell pwsh --config 'C:\Users\dorlugasigal\OhMyPoshThemes\dlg.omp.json' | Invoke-Expression | |
| #### common aliases #### | |
| Set-Alias g git | |
| Set-Alias vim nvim | |
| Set-Alias vi nvim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json", | |
| "blocks": [ | |
| { | |
| "alignment": "left", | |
| "segments": [ | |
| { | |
| "background": "#ff479c", | |
| "foreground": "#ffffff", | |
| "leading_diamond": "\ue0b6", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # run this with an argument to install a nerdfont on windows | |
| # run this with no arguments to install all fonts | |
| # font name, as seen on https://www.nerdfonts.com/font-downloads | |
| param( | |
| [Parameter(Mandatory=$False, Position=0, ValueFromPipeline=$false)] | |
| [System.String] | |
| $fontTarget="*" | |
| ) | |
| # build temp directory for git clone |