Windows Terminal Özelleştirmesi

Windows tarafındaki terminal ortamımı toparlayan tek referans yazısı. PowerShell 7, Starship, zoxide, fzf, fastfetch ve Windows Terminal ayarlarını kapsıyor.

Kurulum Komutları

Admin PowerShell (winget) ile kurulum:

winget install --id Microsoft.PowerShell -e
winget install --id Starship.Starship -e
winget install --id ajeetdsouza.zoxide -e
winget install --id junegunn.fzf -e
winget install --id Fastfetch-cli.Fastfetch -e
winget install --id Git.Git -e
winget install --id DEVCOM.JetBrainsMonoNerdFont -e

Ek PowerShell modülü:

Install-Module -Name PSFzf -Scope CurrentUser -Force

PowerShell Profili ($PROFILE)

if (Get-Command fastfetch -ErrorAction SilentlyContinue) { fastfetch }
 
Invoke-Expression (&starship init powershell)
Invoke-Expression (& { (zoxide init powershell | Out-String) })
 
Set-PSReadLineOption -PredictionSource HistoryAndPlugin
Set-PSReadLineOption -PredictionViewStyle ListView
Set-PSReadLineOption -EditMode Windows
Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete
Set-PSReadLineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadLineKeyHandler -Key DownArrow -Function HistorySearchForward
 
if (Get-Module -ListAvailable -Name PSFzf) {
    Import-Module PSFzf
    Set-PsFzfOption -PSReadlineChordProvider 'Ctrl+t' -PSReadlineChordReverseHistory 'Ctrl+r'
}
 
Set-Alias ll Get-ChildItem
Set-Alias g git
function .. { Set-Location .. }
function ... { Set-Location ../.. }
function gs { git status }
function gl { git log --oneline --graph --decorate -20 }

Windows Terminal settings.json (Önemli Kısımlar)

AyarDeğer
FontJetBrainsMono Nerd Font, 11pt
Padding"12, 12"
SaydamlıkuseAcrylic: true, opacity: 88
Renk ŞemasıTokyo Night
Varsayılan ProfilPowerShell 7
Başlangıç Dizini%USERPROFILE%\Documents\Obsidian

Profiller

  • PowerShell 7
  • Ubuntu WSL
  • Git Bash

Tokyo Night Renk Şeması

RenkDeğer
Background#1A1B26
Foreground#A9B1D6

Kısayol Bindingleri

Kısayolİşlem
Ctrl+Shift+DDikey panel bölme
Ctrl+Shift+EYatay panel bölme
Alt+OkPaneller arası geçiş
Ctrl+Shift+WPaneli kapat
Ctrl+Shift+TYeni sekme
Ctrl+Shift+FBul

Starship Konfigürasyonu (~/.config/starship.toml)

add_newline = true
format = """
[╭─](bold blue) $username$hostname$directory$git_branch$git_status$cmd_duration
[╰─](bold blue)$character """
 
[character]
success_symbol = "[➜](bold green)"
error_symbol = "[✗](bold red)"
 
[directory]
truncation_length = 3
truncate_to_repo = true
style = "bold cyan"
 
[git_branch]
symbol = " "
style = "bold purple"
 
[git_status]
style = "bold yellow"
 
[cmd_duration]
min_time = 500
format = " took [$duration](bold yellow)"

Fastfetch Konfigürasyonu (~/.config/fastfetch/config.jsonc)

Terminal açılışında Windows 11 logosu ve sistem bilgilerini gösterir. İlk kurulumda önce fastfetch --gen-config komutu çalıştırılmalı.

{
  "logo": {
    "source": "windows11",
    "padding": { "top": 1, "right": 3 }
  },
  "modules": [
    "title", "separator", "os", "host", "kernel", "uptime",
    "packages", "shell", "display", "terminal", "cpu", "gpu",
    "memory", "disk", "battery", "locale", "break", "colors"
  ]
}

Özellikler ve Kısayollar

  • Terminal açılışı: Windows 11 logosu + sistem bilgileri (fastfetch ile)
  • Akıllı klasör atlama: z proje komutuyla zoxide
  • Fuzzy geçmiş arama: Ctrl+R
  • Geçmiş navigasyonu: Yukarı/aşağı ok tuşları
  • Tab tamamlama: Menu listesi olarak
  • Git durumu: Prompt içinde anlık gösterim
  • Komut süresi: 500ms üzeri komutlarda otomatik gösterim

İlgili yazılar