3.6 KiB
Archlinux Config
Ela's Archlinux Configfiles
Features and Usage
Terminal
This setup uses a powerful combination of Alacritty, tmux and zsh with a minimalistic prompt.
Commands
pacu: Update and upgrade the whole system (usingBrewfileon macOS andpacmanfileon Arch Linux)depu: Update and upgrade the dependencies for the current projectmkcd: Create a directory and enter itfcd: cd into a directory using fuzzy searchfe: Edit a directory or file using fuzzy searchfco: Checkout Git branches or tags using fuzzy searchfkill: Kill any process with fuzzy searchfshow: Git commit browser with fuzzy search
Text Editor
Text editing is based on Neovim, configured to be an "IDE".
e: Start Neovim with all pluginside: Start Neovim with all plugins in an IDE like window layout
Navigation
gd: Go to definition of symbol under cursorgi: Go to implementations of symbol under cursorgr: Go to references of symbol under cursor<space><space>: Fuzzy search files in workspace<space>/: Fuzzy search in all files in workspace<space>j: Open visual file explorer
Git
<space>gg: Git status<space>gd: Git diff<space>gb: Git blame<space>gs: Git stage current hunk<space>gu: Git unstage current hunk<space>gc: Git commit<space>gm: Git three-way merge
Diagnostics and Refactoring
K: Show signature of symbol under cursor[d: Go to previous diagnostic issued]: Go to next diagnostic issue<space>e: Show diagnostics details<space>s: Open workspace diagnostics<space>k: Open symbols outline of file<space>r: Rename current symbol<space>a: Display code actions
Testing
<space>tn: Run nearest test to cursor<space>tf: Run all tests in file<space>ta: Run all tests<space>tu: Toggle extended testing UI
Debugging
<space>db: Toggle breakpoint on current line<space>dB: Set condition for breakpoint<space>dd: Start debugger or continue to next breakpoint<space>dn: Step over<space>di: Step into<space>do: Step out<space>dK: Show evaluation of symbol under cursor<space>du: Toggle extended debugging UI
Add Languages and Tools
To extend the editor with new languages and tools, simply add them to tools.lua.
Installation
-
Clone this repo to
~/dotfilesby runninggit clone https://git.pew.io/phil/elas-arch-config.git ~/dotfiles -
Change the name and email address in
git/.config/git/config -
Arch Linux only: Change
pacmanfile/.config/pacmanfile/pacmanfile.txtto your liking or addpacmanfile-extra.txtto the same directory for independent packages per machine -
Run
~/dotfiles/install.shWARNING: This may install and/or remove software and change your configs!
-
Either import an existing PGP key pair by using
gpg --import my-key.ascandgpg --import my-key-pub.asc, or create a new one by following the GitHub guide. You need to use the same name and email address as an ID that you have configured ingit/.gitconfigto correctly sign your Git commits. -
Either import an existing SSH key pair by copying it to
~/.ssh/id_rsaand~/.ssh/id_rsa.pubor create a new one by following the GitHub guide.