first
This commit is contained in:
16
Microsoft.PowerShell_profile.ps1
Normal file
16
Microsoft.PowerShell_profile.ps1
Normal file
@@ -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 { "> " }
|
||||||
|
|
||||||
|
|
||||||
25
README.md
Normal file
25
README.md
Normal file
@@ -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
|
||||||
11
vimrc
Normal file
11
vimrc
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
set autoindent expandtab tabstop=4 shiftwidth=4
|
||||||
|
set hidden
|
||||||
|
nnoremap <C-S> :w<cr>
|
||||||
|
nnoremap <C-l> :bn<cr>
|
||||||
|
nnoremap <C-h> :bp<cr>
|
||||||
|
inoremap <C-S> <esc>:w<cr>i
|
||||||
|
let mapleader=" "
|
||||||
|
nnoremap <leader>w :w<cr>:bw<cr>
|
||||||
|
nnoremap <leader>v :e ~/.vimrc<cr>
|
||||||
|
nnoremap <leader>s :source ~/.vimrc<cr>
|
||||||
|
nnoremap <leader>q :xa<cr>
|
||||||
Reference in New Issue
Block a user