Last active
May 5, 2020 08:32
-
-
Save doitian/db79d2dbfaa24093534c7411b0a926bd to your computer and use it in GitHub Desktop.
[PowerShell Settings] #windows
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
# Enable emacs bindings and fix colors in light theme | |
Set-PSReadLineOption -EditMode emacs -Colors @{ | |
"Member" = "$([char]0x1b)[37m" | |
"Number" = "$([char]0x1b)[37m" | |
} | |
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete | |
$PSProfileDir = $(Split-Path -Parent $PROFILE) | |
$WindowsTerminalSettings = 'C:\Users\me\AppData\Local\Packages\Microsoft.WindowsTerminal_8wekyb3d8bbwe\LocalState\settings.json' | |
$env:EDITOR = 'vim' | |
$env:FZF_DEFAULT_OPTS = '--color=light --color=fg:0' | |
Set-Alias -Name g -Value git | |
Set-Alias -Name grep -Value rg | |
Set-Alias -Name which -Value Get-Command | |
$cb = "$HOME/codebase" | |
$dcs = "$HOME/Documents" | |
$dsk = [Environment]::GetFolderPath("Desktop") | |
$dl = "$HOME/Downloads" | |
$kb = "$HOME/codebase/knowledge-base" | |
function fpass { | |
pushd "~/.password-store" | |
$selected = (fzf) -Replace '\.gpg$', '' | |
popd | |
gopass @Args $selected | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment