1. SSH Key
You will need a public SSH key to authenticate with services like GitHub.
-
Create a new SSH key:
ssh-keygen -t ed25519 -C "admin@localhost.com"
-
Adjust your
~/.ssh/config
file.########### # ~/.ssh/config ########### Host * AddKeysToAgent yes UseKeychain yes Host github.com HostName github.com PreferredAuthentications publickey IdentityFile ~/.ssh/github-id_ed25519
-
Copy your new public SSH key (
~/.ssh/*.pub
) -
Add it to your Git account as an authentication key and a signing key.
If you're developing on macOS, you'll need XCode command-line tools.
-
Run the command to install:
xcode-select --install
-
Follow the on-screen instructions to complete the installation.
-
After installation, verify the tools (e.g.,
git
,svn
,make
) are available in:/Library/Developer/CommandLineTools/usr/bin/
.
3. Bash
For a better terminal experience, customize it to fit your workflow.
-
Check your current shell:
echo $SHELL
-
If you want to switch to
bash
, run the following command:chsh -s /bin/bash
-
Set up configuration symlinks:
# Common login configuration ln -sf ~/geojuji/shell/bash/bash_profile ~/.bash_profile # Contains some needed aliases ln -sf ~/geojuji/shell/bash/bash_aliases ~/.bash_aliases
📝 In the bash_profile
file, a reference to the ~/geojuji/shell/bash/bin/
folder has been added to the $PATH
for executable files. You can add new binaries to that folder but make sure all scripts added have their permissions set to executable (e.g., chmod 755
).
4. Git
Configure git
for version control.
-
Rename and update your personal Git configuration file:
mv ~/geojuji/shell/git/gituser.example ~/geojuji/shell/git/gituser
Update
name
,username
, andemail
fields. -
Symlink
git
configuration files:# Your personal configuration ln -sf ~/geojuji/shell/git/gituser ~/.gituser # The common configuration ln -sf ~/geojuji/shell/git/gitconfig ~/.gitconfig # List global files to be ignored ln -sf ~/geojuji/shell/git/gitignore ~/.gitignore # All needed aliases ln -sf ~/geojuji/shell/git/gitaliases ~/.gitaliases
📝 For installing some git
autocompletion, run:
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash