Created
June 26, 2022 18:39
-
-
Save varunswarup0/79db0e74d98821f881c5c660a2c20b7d to your computer and use it in GitHub Desktop.
This file contains 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
# Shows navigable menu of all options when hitting Tab | |
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete | |
Import-Module PSReadLine | |
Set-PSReadLineOption -PredictionSource History | |
# Autocompletion for arrow keys | |
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward | |
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward | |
Import-Module posh-git | |
Import-Module oh-my-posh | |
Set-PoshPrompt -Theme iterm3 | |
# New-Alias <alias> <aliased-command> | |
New-Alias cl clear | |
function show { | |
Get-ChildItem -Name | |
} | |
function open { | |
ii . | |
} |
This file contains 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", | |
"final_space": true, | |
"console_title": true, | |
"console_title_style": "template", | |
"console_title_template": "{{ .Shell }} in {{ .Folder }}", | |
"blocks": [ | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"vertical_offset": 1, | |
"segments": [ | |
{ | |
"type": "path", | |
"style": "powerline", | |
"powerline_symbol": "", | |
"foreground": "#003544", | |
"background": "#0087D8", | |
"properties": { | |
"style": "folder" | |
} | |
}, | |
{ | |
"type": "git", | |
"style": "powerline", | |
"powerline_symbol": "", | |
"background": "#a5be59", | |
"foreground": "#353827", | |
"properties": { | |
"branch_ahead_icon": "\u2191", | |
"branch_behind_icon": "\u2193", | |
"branch_gone": "\u2262", | |
"branch_icon": "\ue0a0 ", | |
"branch_identical_icon": "\u2261", | |
"cherry_pick_icon": "\u2713 ", | |
"color_background": true, | |
"commit_icon": "\u25b7 ", | |
"display_status_detail": true, | |
"local_staged_icon": "", | |
"local_working_icon": "", | |
"merge_icon": "\u25f4 ", | |
"no_commits_icon": "[no commits]", | |
"rebase_icon": "\u2c62 ", | |
"stash_count_icon": "", | |
"status_colors_enabled": true, | |
"status_separator_icon": " \u2502", | |
"tag_icon": "\u25b6 ", | |
"local_changes_color": "#4caf50", | |
"ahead_and_behind_color": "#4caf50", | |
"behind_color": "#d2ff5e", | |
"ahead_color": "#ff9248" | |
} | |
} | |
] | |
}, | |
{ | |
"type": "prompt", | |
"alignment": "left", | |
"newline": true, | |
"segments": [ | |
{ | |
"type": "text", | |
"style": "plain", | |
"foreground": "#ffffff", | |
"properties": { | |
"prefix": "", | |
"text": "\u276F" | |
} | |
} | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment