Skip to content

extg/dotfiles

Repository files navigation

dotfiles

Loading order:

~/.zshenv
~/.zprofile
~/.zshrc
~/.zlogin
~/.zlogout

diff versions of file

gd --no-index ~/.zshrc ~/Workspaces/dotfiles/.zshrc

ssh

ssh-keygen

Generate a new key:

ssh-keygen -t ed25519 -C "[email protected]"

Upgrade Your SSH Key to Ed25519

Fingerprint:

ssh-keygen -lf ./id_rsa -E md5

xattr

Removing extended attributes from a file, but the question is why? and how did they get there?

  • What does @ mean in the output of ls -l — it means the file has extended attributes. Full answer
  • How do I remove the “extended attributes” on a file in Mac OS X? — you can also use the -c option to remove all extended attributes:
$ xattr -c s.7z
$ xattr s.7z

To remove the quarantine flag from all downloaded files in the Downloads folder, execute the command for Mac OS X 10.6:

xattr -d -r com.apple.quarantine ~/Downloads

links

TODO

System setup

Log in to iCloud, set up synchronization, download applications from the AppStore it seems everything is already through brew

Install brew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install apps from Brewfile

install everything from the Brewfile

brew bundle

for save all installed apps run brew bundle dump -f it creates Brewfile in the current directory from currently-installed packages

Other useful settings

iTerm2 was installed via brew

Set iTerm2 as default shell (in menu bar)

Set default node

nvm install v12

Install FiraCode https://github.com/tonsky/FiraCode/wiki/Installing#macos

Setup VS Code http://shanalikhan.github.io/2015/12/15/Visual-Studio-Code-Sync-Settings.html

Setup spaceship-prompt

npm install -g spaceship-prompt

Create Workspaces

mkd ~/Workspaces

Add a Spacer to the Application Side of Your Dock

defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'; killall Dock
# or add small spacer
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="small-spacer-tile";}' && killall Dock

Disable recent apps

defaults write com.apple.dock show-recents -bool FALSE

Reset the Dock to its default state

defaults delete com.apple.dock; killall Dock
defaults write com.apple.dock show-process-indicators -bool true
efaults write com.apple.dock autohide -bool true

Don't forget to setup macos defaults

bash .macos

Setup default apps

Duti requires you to use a known application's bundle id in order to set it as the default for a given document type. Use the following command to list all known ids for your system.

# List all apps bundle ids
lsappinfo | grep 'bundleID="' | cut -d'"' -f2 | sort

# OR List/Search all existing UTIs (Uniform Type Identifiers)
/System/Library/Frameworks/CoreServices.framework/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump
./setup-default-apps.sh

Setup webstorm Command-line interface

You can create a shell script with this command in a directory from your PATH environment variable. For example, create the file /usr/local/bin/webstorm with the following contents:

touch /usr/local/bin/webstorm
chmod +x /usr/local/bin/webstorm
pbpaste > /usr/local/bin/webstorm
#!/bin/sh

open -na "WebStorm.app" --args "$@"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published