Skip to content

Powerful scripts of python, bash and powershell & Useful config files

License

Notifications You must be signed in to change notification settings

ACupofAir/dotfiles

Repository files navigation

dotfiles

Organize my dotfiles with ln command; and sync them with git.

⚙️Setup

PowerShell Config

  • lookup the powershell version $PSVersionTable
  • Install powershell 7
  • mkdir ~/Document/PowerShell
  • 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

Zsh Config zshrc

  • Clone this repository to your own machine
  • ln -s thisFoldPosition ~/.zshrc
  • You should change the proxy ip and port in my zshrc

Vim Config vimrc

  • 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)

Neovim Config init.lua

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
  1. 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
  1. Clone my conifguration
git clone git@github.com:ACupofAir/lazyvim_config.git $env:LOCALAPPDATA\nvim
  1. Remove the .git folder, so you can add it to your own repo later
Remove-Item $env:LOCALAPPDATA\nvim\.git -Recurse -Force
  1. Need to rely on other components
    • im-select: scoop bucket add im-select https://github.com/daipeihust/im-select, thenscoop install im-select
    • gcc: scoop install gcc
    • a nerd font: open this website, choose anyone your liked
  2. Start Neovim! nvim

🧰Usage

PowerShell

  • Directors Stack Function (no need install other plugins) dir_stack_demo
    • pd: pushd the current directory into stack
    • pd $dir_name: pushd the directory named $dir_name into stack
    • dv: show the directory in stack(dv is the alias from dirs -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 proxy
    • pxoff: clear proxy
    • Set-Git-Proxy: set git proxy
  • Historys
    • need install PSReadline
    • historys will show all powershell command history
  • Translator
  • Draw String Bigger
    • draw $TEXT: draw $TEXT bigger on powershell

⚠️note

  • Should use full path ln -s $fullpath/dotfile/xxx $fullpath/xxx
  • Should use sudo prefix

About

Powerful scripts of python, bash and powershell & Useful config files

Topics

Resources

License

Stars

Watchers

Forks