Skip to content

Commit

Permalink
Windows Terminal hints
Browse files Browse the repository at this point in the history
  • Loading branch information
kaufmajo committed Jan 20, 2023
1 parent 17ed096 commit 944eae8
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 11 deletions.
35 changes: 24 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,6 @@ sudo apt install gcc
sudo apt install ripgrep
sudo apt-get install fd-find
```

### Windows Terminal

Install a Nerd font on the OS:

https://learn.microsoft.com/en-us/windows/terminal/tutorials/custom-prompt-setup

https://www.nerdfonts.com/font-downloads

Configure this new font within Windows Terminal Settings.

### Using Windows Clipboard with Neovim

https://github.com/neovim/neovim/wiki/FAQ#how-to-use-the-windows-clipboard-from-wsl
Expand All @@ -59,3 +48,27 @@ vim.g.clipboard = {
cache_enabled = false
}
```

## Windows Terminal

### Install a Nerd font on the OS:

https://learn.microsoft.com/en-us/windows/terminal/tutorials/custom-prompt-setup

https://www.nerdfonts.com/font-downloads

Configure this new font within Windows Terminal Settings.

### Customize PowerShell-Prompt with "Oh My Posh"

https://learn.microsoft.com/de-de/windows/terminal/tutorials/custom-prompt-setup

An example powershell profile file can be found in "terminal/Microsoft.PowerShell_profile.ps1".

### Powershell Profile

The currently used profile path is stored with the system variable "$PROFILE".

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-7.3


0 install.sh → install-wsl.sh
100755 → 100644
File renamed without changes.
17 changes: 17 additions & 0 deletions run-wsl.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash

if [ $(/etc/init.d/apache2 status | grep -v grep | grep 'apache2 is running' | wc -l) > 0 ]
then

echo "Apache is currently running."

sudo service apache2 stop
sudo service apache2 start

else

echo "Apache is not running."

sudo service apache2 start
fi

1 change: 1 addition & 0 deletions terminal/Microsoft.PowerShell_profile.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\catppuccin_frappe.omp.json" | Invoke-Expression

0 comments on commit 944eae8

Please sign in to comment.