Skip to content

Instantly share code, notes, and snippets.

@doitian
Last active May 5, 2020 08:32
Show Gist options
  • Save doitian/db79d2dbfaa24093534c7411b0a926bd to your computer and use it in GitHub Desktop.
Save doitian/db79d2dbfaa24093534c7411b0a926bd to your computer and use it in GitHub Desktop.
[PowerShell Settings] #windows
# 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