Skip to content

sabahtalateh/init-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Configuring just installed MacOS

Install tools

Configure Karabiner

Create config folder

mkdir -p ~/.confing/karabiner

Download karabiner.json into folder

curl -o ~/.config/karabiner/karabiner.json https://raw.githubusercontent.com/sabahtalateh/init-system/main/karabiner.json

Configure ITerm2

Create config folder

mkdir ~/ITerm2.Config

Download com.googlecode.iterm2.plist into folder

curl -o ~/ITerm2.Config/com.googlecode.iterm2.plist https://raw.githubusercontent.com/sabahtalateh/init-system/main/com.googlecode.iterm2.plist

Set folder as config folder (Preferences -> General -> Preferences) Alt text

Configure shell

At ~/.zshrc file add following line

# zsh config
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(git zsh-autosuggestions zsh-syntax-highlighting zsh-direnv) 
source $ZSH/oh-my-zsh.sh

# prompt
export PS1="%{�[36m%}%c%{�[00m%} $(git_prompt_info)"

# fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh # fzf will popup by <ctrl+r>

# integrations when zsh is runnning as VS Code terminal
[[ "$TERM_PROGRAM" == "vscode" ]] && . "$(code --locate-shell-integration-path zsh)"

# vscode config
alias codeconf='code -n ~/Library/Application\ Support/Code/User/'

# lf
alias lf=lfcd
lfcd() {
    cd "$(command lf -print-last-dir "$@")"
}

Configure lf

Create config dir

mkdir -p ~/.config/lf

At ~/.config/lf/lfrc put

set hidden false

map <enter> open
map <backspace2> updir

Next

Tips

XCode previews not works after cleaning ~/Library/Developer

Run

sudo xcode-select -s /Applications/Xcode.app
xcrun simctl --set previews delete all

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published