From cea104b699a26c0ee34c94cfd430932a95b04109 Mon Sep 17 00:00:00 2001 From: Zev Averbach Date: Sun, 17 Dec 2023 22:34:49 +0100 Subject: [PATCH] first --- Microsoft.PowerShell_profile.ps1 | 16 ++++++++++++++++ README.md | 25 +++++++++++++++++++++++++ vimrc | 11 +++++++++++ 3 files changed, 52 insertions(+) create mode 100644 Microsoft.PowerShell_profile.ps1 create mode 100644 README.md create mode 100644 vimrc diff --git a/Microsoft.PowerShell_profile.ps1 b/Microsoft.PowerShell_profile.ps1 new file mode 100644 index 0000000..92ef27b --- /dev/null +++ b/Microsoft.PowerShell_profile.ps1 @@ -0,0 +1,16 @@ +Set-PSReadLineOption -EditMode Emacs +Set-Alias -Name vi -Value code +Function editPowerShellProfile { vi C:\Users\User\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 } +Set-Alias -Name pp -Value editPowerShellProfile +Set-Alias -Name bb -Value editPowerShellProfile +Function changeDirectoryToRepos { Set-Location C:\Users\User\repos; Get-Location } +Set-Alias -Name r -Value changeDirectoryToRepos +Function sourceProfile { . $profile } +Set-Alias -Name ss -Value sourceProfile +Function openToDoFile { "opening todo.md"; vi C:\Users\User\todo.md } +Set-Alias -Name todo -Value openToDoFile +Function openVimRc { vi C:\Users\User\AppData\Local\nvim\init.vim } +Set-Alias -Name vv -Value openVimRc +Function prompt { "> " } + + diff --git a/README.md b/README.md new file mode 100644 index 0000000..f554b8c --- /dev/null +++ b/README.md @@ -0,0 +1,25 @@ +- [ ] hide the taskbar +- [ ] turn on clipboard history +- [ ] install Windows Terminal +- [ ] install Powershell 7.x (MS store) +- [ ] install VSCode + - [ ] install/set up extensions and customizations + - [ ] vim mode + - [ ] tokyo night theme +- [ ] install Firefox +- [ ] install PowerToys + - [ ] remap capslock to ctrl +- [ ] install chocolatey, then open an admin-enabled Terminal session + - [ ] install git + - [ ] install neovim + - [ ] symlink the vimrc included here + ```powershell + mkdir ~/AppData/Local/nvim` + New-Item -Path c:\Users\User\AppData\Local\nvim\init.vim -ItemType SymbolicLink -Value C:\Users\User\repos\windows_setup\vimrc + ``` + - [ ] symlink the powershell profile file included here + ```powershell + New-Item -Path C:\Users\User\Documents\PowerShell\Microsoft.PowerShell_profile.ps1 -ItemType SymbolicLink -Value C:\Users\User\repos\windows_setup\Microsoft.PowerShell_profile.ps1 + ``` + - [ ] install python +- [ ] install ipython diff --git a/vimrc b/vimrc new file mode 100644 index 0000000..9ba5044 --- /dev/null +++ b/vimrc @@ -0,0 +1,11 @@ +set autoindent expandtab tabstop=4 shiftwidth=4 +set hidden +nnoremap :w +nnoremap :bn +nnoremap :bp +inoremap :wi +let mapleader=" " +nnoremap w :w:bw +nnoremap v :e ~/.vimrc +nnoremap s :source ~/.vimrc +nnoremap q :xa