Organize my dotfiles with ln command; and sync them with git.
- lookup the powershell version
$PSVersionTable
- Install powershell 7
mkdir ~/Document/PowerShell
(📎some version maybe in ~/Documents/WindowsPowerShell, you canecho $profile
)- Install scoop
- Install StarShip
scoop install starship
- Install 🔗PSReadline (No need for powershell 7, for it has been built default) click the link and look the readme
- Install module write-big-char:
Install-Module -Name Write-Big-Char
- Install module directory-stack:
Install-Module -Name directory-stack
ln -s xxx/dotfile/Microsoft.PowerShell_profile.ps1 $profile
- Clone this repository to your own machine
ln -s thisFoldPosition ~/.zshrc
- You should change the proxy ip and port in my zshrc
- Clone this repository to your own machine
- Install vim-plug
ln -s thisFoldPosition/vimrc ~/.vimrc
- Open your vim, and type
:PlugInstall
to install the plugs in my dotfile - notice: You may need set your proxy firstly(If you have config the zshrc, you can use
pxon
command)
init_offline.lua
is the offline version of user/init.lua
- On windows 🪟 with 🔗lazyvim, follow the official tutor to install lazyvim, or use my conifguration following
- Make a backup of your current Neovim files:
Move-Item $env:LOCALAPPDATA\nvim $env:LOCALAPPDATA\nvim.bak
# optional but recommended
Move-Item $env:LOCALAPPDATA\nvim-data $env:LOCALAPPDATA\nvim-data.bak
- Clone my conifguration
git clone git@github.com:ACupofAir/lazyvim_config.git $env:LOCALAPPDATA\nvim
- Remove the .git folder, so you can add it to your own repo later
Remove-Item $env:LOCALAPPDATA\nvim\.git -Recurse -Force
- Need to rely on other components
- im-select
scoop bucket add im-select /~https://github.com/daipeihust/im-select
scoop install im-select
- gcc
scoop install gcc
- a nerd font: open this website, choose anyone your liked
- Start Neovim!
nvim
- Directors Stack Function (no need install other plugins)
pd
: pushd the current directory into stackpd $dir_name
: pushd the directory named$dir_name
into stackdv
: show the directory in stack(dv is the alias fromdirs -v
on linux)pd $index
: switch to the directory in stack whose index is$index
pp $index
: popd the directory whose index is$index
from stack
- Proxy Usage
pxon
: set proxypxoff
: clear proxySet-Git-Proxy
: set git proxy
- Historys
- need install PSReadline
historys
will show all powershell command history
- Translator
- need install python and google-translate-for-goldendict
trans $text
will translate$text
to English or Chinese
- Draw String Bigger
draw $TEXT
: draw$TEXT
bigger on powershell
- Should use full path
ln -s $fullpath/dotfile/xxx $fullpath/xxx
- Should use
sudo
prefix