alemar11 / dotfiles

dotfiles for macOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install dotfiles

./dotfiles.sh

macOS

In the macos folder there are some scripts to customize some macOS defaults, Terminal, Xcode, VScode and Vim.

Double click “AM.terminal” file.
This is the specific Theme file for Terminal.app.
Note: If you get a warning that this is from an unidentified developer, Right-click on the file and select “Open with” > Terminal option.

./macos/install.sh

Xcode configuration

./macos/xcode/link.sh

Vistual Studio Code configuration

./macos/vscode/link.sh

Update Swift Package Manager Completion

If you want to update the current auto completion run: swift package completion-tool generate-zsh-script > ~/.zsh/completions/_swift

Setup SSH

You need to modify your ~/.ssh/config file to automatically load keys into the ssh-agent and store passphrases in your keychain.

touch ~/.ssh/config

Host *
  UseKeychain yes
  AddKeysToAgent yes
  IdentityFile ~/.ssh/id_ed25519

Add your SSH private key to the ssh-agent and store your passphrase in the keychain.

ssh-add --apple-use-keychain ~/.ssh/id_ed25519

More info can be found here:


VIM Plugins (Optional)

PATHOGEN

Pathogen is an easy way to manage VIM plugins contained at /.vim/bundle/[name-of-plug-in]. Otherwise, VIM tends to spread these files out in different directories (/.vim/plugin, ~/.vim/syntax, ~/.vim/doc, etc.). In general, if you want to know about customizing VIM, see http://learnvimscriptthehardway.stevelosh.com/.

To install Pathogen:

mkdir -p ~/.vim/autoload ~/.vim/bundle && curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim 

Next, add the following to at the top of your ~/.vimrc file:

execute pathogen#infect()

NerdTree (Vim Plugin)

Nerdtree gives you a little window to navigate a directory structure.

To add it, run:

git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree

Next, to have it automatically start up, add the following line to your ~/.vimrc file:

autocmd vimenter * NERDTree

Now, just run vim in any directory and you should get a navigation pane in a split window view.

About

dotfiles for macOS


Languages

Language:Shell 67.4%Language:Python 20.9%Language:Swift 6.9%Language:Vim Script 4.7%