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
- install plug:refer to https://github.com/junegunn/vim-plug?tab=readme-ov-file#installation simply: unix
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
vim
# vim run :PlugInstallwindows(powershell):
iwr -useb https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim |`
ni $HOME/vimfiles/autoload/plug.vim -Force- 🥳Highlight:
- It is completely offline.
- Tabline support.
- Usage: Just replace this
vimrcto ~/.vimrc:cat vimrc > ~/.vimrc
init_offline.luais 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_nameinto stackdv: show the directory in stack(dv is the alias fromdirs -von linux)pd $index: switch to the directory in stack whose index is$indexpp $index: popd the directory whose index is$indexfrom stack
- Proxy Usage
pxon: set proxypxoff: clear proxySet-Git-Proxy: set git proxy
- Historys
- need install PSReadline
historyswill show all powershell command history
- Translator
- need install python and google-translate-for-goldendict
trans $textwill translate$textto English or Chinese
- Draw String Bigger
draw $TEXT: draw$TEXTbigger on powershell
- Should use full path
ln -s $fullpath/dotfile/xxx $fullpath/xxx - Should use
sudoprefix