diff --git a/.gitignore b/.gitignore index b6e4761..a6f2ce0 100644 --- a/.gitignore +++ b/.gitignore @@ -127,3 +127,5 @@ dmypy.json # Pyre type checker .pyre/ + +*.DS_Store diff --git a/docs/macos/bash_profile.md b/docs/macos/bash_profile.md new file mode 100644 index 0000000..fadc121 --- /dev/null +++ b/docs/macos/bash_profile.md @@ -0,0 +1,32 @@ +``` +alias ll='ls -alF' +alias e='exit' +alias c='clear' +alias dockerps='docker ps --format "{{.ID}}\t{{.Names}}"' + + +# Git branch in prompt. +parse_git_branch() { + git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' +} +export PS1="\[\033[34m\]\t\[\033[00m\] \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ " + + +[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh" +source ~/.git-completion.bash + +source /Users/lian/python3.11-venv/bin/activate + +# Added by Toolbox App +export PATH="$PATH:/usr/local/bin" + + +eval "$(/usr/local/bin/brew shellenv)" +# Set PATH, MANPATH, etc., for Homebrew. +export HOMEBREW_BREW_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/brew.git" +export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.tuna.tsinghua.edu.cn/git/homebrew/homebrew-core.git" + + +# export http_proxy="socks5://127.0.0.1:1080" +# export https_proxy="socks5://127.0.0.1:1080" +``` diff --git a/docs/macos/vimrc.md b/docs/macos/vimrc.md new file mode 100644 index 0000000..8a143a8 --- /dev/null +++ b/docs/macos/vimrc.md @@ -0,0 +1,134 @@ +vi ~/.vimrc + +``` +set nocompatible " be iMproved, required +filetype off " required + +" set the runtime path to include Vundle and initialize +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() +" alternatively, pass a path where Vundle should install plugins +"call vundle#begin('~/some/path/here') + +" let Vundle manage Vundle, required +Plugin 'VundleVim/Vundle.vim' + +Plugin 'ycm-core/YouCompleteMe' + +Plugin 'yegappan/mru' +nnoremap :MRU + + +Plugin 'ntpeters/vim-better-whitespace' +nnoremap :StripWhitespace + + +Plugin 'Exafunction/codeium.vim' +imap