~hacktivista/config

45b673bdc35c44ef3fde8f3b1018e159b97852e7 — Felix Freeman 6 months ago 167c0ff
Rename ~/todo.md to README.md, and clear instructions
1 files changed, 9 insertions(+), 9 deletions(-)

R root/etc/skel/{todo.md => README.md}
R root/etc/skel/todo.md => root/etc/skel/README.md +9 -9
@@ 19,9 19,16 @@ git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.config/emacs
~/.config/emacs/bin/doom install
```

## Git

```
git config --global user.name <your-name>
git config --global user.email <your-email>
```

## SSH keys

Copy existing ssh keys with by running the following, remember to change [main user].
If this is a secondary user and need SSH keys from the main user, copy existing ssh keys with by running the following, remember to change [main user].

```
current_user=$(whoami) && mkdir .ssh && chmod 700 .ssh && sudo cp /home/[main_user]/.ssh/{id_rsa,id_rsa.pub} ~/.ssh/ && sudo chown "$current_user:$current_user" .ssh/id_rsa*


@@ 29,7 36,7 @@ current_user=$(whoami) && mkdir .ssh && chmod 700 .ssh && sudo cp /home/[main_us

## GPG based programs

You can use `sugpg` to access programs which require gpg, such as `pass` or even a session.
If this is a secondary user and need access to programs which require gpg from the main user, such as `pass` or even a session, you can use `sugpg`.

Make sure to change `me` GPGUSER (which must be the one with desired GPG keys), then run:



@@ 51,13 58,6 @@ sugpg () {
EOF
```

## Git

```
git config --global user.name <your-name>
git config --global user.email <your-email>
```

## That's it

Logout and login again to see all changes applied. You can also spawn a login shell with `bash -l` if needed.