Skip to content

KatlehoJordan/dot-files

Repository files navigation

dot-files

This repository is to capture my various dot-files, settings, etc.

Software to reinstall after a factory reset

Windows

git bash chrome snipping tool vs code signal MS teams MS Office (Excel, Word, Powerpoint) Powershell 7zip flux bank ID docker desktop mullvad vpn PowerToys (for keyboard remapping) nvim lua

Special tips

Ubuntu

zsh tmux i3 nvim vs code 7zip chrome python (3.11.4) curl poetry (1.6.1) - follow instructions for adding shell completions also

Other changes to make when setting up new computer

  • Language packages for Microsoft Office
    • Swedish
    • Catalan
  • Auto-complete rules
    • two hyphens to make en-dash
    • three hyphens to make em-dash

Using SSH

To use SSH between computers you need to have the right software setup on your server and the client.

These instructions are modified from this link.

Your server is likely to be a Linux machine.

In your Linux machine:

sudo apt install openssh-server
sudo systemctl enable ssh
sudo ufw allow ssh

Then you will need to retrieve your IP address for the machine. IPv6 can be used.

From the client:

ssh user@ip

Then enter the password when prompted. After connected, if you wish to disconnect:

exit
logout

To use the SSH Extension with VS code, you will want to modify the file at ~/.ssh/config so that it has this format:

Host memorable-name
  User user
  HostName IPv6-address

You should be able to connect to the server via a stand-alone terminal or VS Code now, although there is a known (apparently-harmless) bug in VS Code that asks for the password repeatedly although you have already been connected.

Notes regarding setup as inspired by The Primeagean

The Primeagean provided a couple of videos to show his developer setup on Linux.

https://www.youtube.com/watch?v=bdumJIHabhQ

or

https://www.youtube.com/watch?v=bdumJlHabhQ

Keybindings in editors vim

I learned neovim predominantly by watching his videos, which are not linked here.

windows manager: i3

https://i3wm.org/docs/userguide.html#:~:text=2.10.-,Exiting%20i3,you%20really%20want%20to%20quit.

  • If using windows as the modifier key, relatively intuitive to bounce between apps (windows + arrow)

  • Also easy to move them (windows + shift + arrow)

  • Also easy to move between workspaces (windows + number)

  • Also easy to move apps to other workspaces (windows + shift + number)

  • key shortcuts to know

    • windows + enter (launch a terminal)
    • windows + shift + q (kill an application)
    • windows + shift + x (end i3 session) - then key based on prompt
    • windows + shift + e (end i3 session)
    • windows + d (search for an app to start)

Problems

terminal: tmux

https://linuxhint.com/attach-tmux-to-existing-session/ https://tmuxcheatsheet.com/

ctrl f to fuzzy find anywhere?

Python with pyenv and poetry in Windows

These instructions modified from here.

Although one can install python system-wide, it is likely better to first have a virtual environment manager setup to manage your python versions. Thereafter, poetry is convenient for managing your python packages.

Start by installing pyenv:

git clone https://github.com/pyenv-win/pyenv-win.git $HOME/.pyenv

Add it to the path by updating your .bashrc file.

Then install your python version of choice, using pyenv install --list to find the version that is most recent and relevant for you. Then install and make the global version the same with:

pyenv install <version>
pyenv global <version>

Next, to download the install file for poetry, it is possible from powershell with:

Invoke-WebRequest -Uri "https://install.python-poetry.org" -UseBasicParsing -OutFile "$HOME/Downloads/install-poetry.py"

Then to install it, you go back to bash and run:

pyenv exec python $HOME/Downloads/install-poetry.py

Finally, you can confirm it worked by opening a fresh bash terminal and running:

poetry --version

After poetry has been installed, locate the pypoetry/config.toml file and update it according to your dot file.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published