Skip to content

Commit

Permalink
⬆️ update shell config
Browse files Browse the repository at this point in the history
  • Loading branch information
ras0q committed Oct 17, 2024
1 parent c16ba07 commit 2b31db8
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 13 deletions.
12 changes: 12 additions & 0 deletions win/Microsoft.PowerShell_profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,18 @@ function Call($batfile) {
}
}

Set-PsReadLineKeyHandler -Chord Ctrl+r -ScriptBlock {
$command = Get-Content (Get-PSReadLineOption).HistorySavePath | fzf --scheme=history --tac
[Microsoft.PowerShell.PSConsoleReadLine]::Insert($command)
}

Set-PSReadLineKeyHandler -Key Tab -Function Complete

# mute
Set-PSReadLineOption -BellStyle None

# Environment variables
$env:LESSCHARSET = "utf-8"
$env:AQUA_GLOBAL_CONFIG = "$HOME\.config\aquaproj-aqua\aqua.yaml"

# Set PATH
Expand All @@ -42,3 +51,6 @@ function gg($repo) { ghq get $repo }

# Starship
Invoke-Expression (&starship init powershell)

# fnm
fnm env --use-on-cd --shell powershell | Out-String | Invoke-Expression
43 changes: 30 additions & 13 deletions win/terminal/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,20 @@
"actions":
[
{
"command": "find",
"id": "User.find",
"keys": "ctrl+shift+f"
},
{
"command": {
"command":
{
"action": "copy",
"singleLine": false
},
"id": "User.copy",
"keys": "ctrl+c"
"id": "User.copy"
},
{
"command": "find",
"id": "User.find"
},
{
"command": "paste",
"id": "User.paste",
"keys": "ctrl+v"
"id": "User.paste"
},
{
"command":
Expand All @@ -28,16 +26,35 @@
"split": "auto",
"splitMode": "duplicate"
},
"id": "User.splitPane",
"keys": "alt+shift+d"
"id": "User.splitPane"
}
],
"copyFormatting": "none",
"copyOnSelect": false,
"defaultProfile": "{574e775e-4f2a-5b96-ac1e-a2962a402336}",
"initialCols": 80,
"initialRows": 20,
"newTabMenu": [
"keybindings":
[
{
"id": "User.paste",
"keys": "ctrl+v"
},
{
"id": "User.find",
"keys": "ctrl+shift+f"
},
{
"id": "User.copy",
"keys": "ctrl+c"
},
{
"id": "User.splitPane",
"keys": "alt+shift+d"
}
],
"newTabMenu":
[
{
"type": "remainingProfiles"
}
Expand Down

0 comments on commit 2b31db8

Please sign in to comment.