markdown 有用的Mac升级/设置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了markdown 有用的Mac升级/设置相关的知识,希望对你有一定的参考价值。

Add aliases for git
https://githowto.com/aliases

    vi ~/.gitconfig
    paste 
    `
      [alias]
        co = checkout
        ci = commit
        st = status
        br = branch
        hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
        type = cat-file -t
        dump = cat-file -p
        cm = commit -m
      [user]
          name = Jonathan Kim 
          email = jonathan.kim@invitae.com
    `
    

Vim global settings

    vi ~/.vimrc
    paste 
    `
      set ts=4 sw=4 #tab length is set to 4 spaces
      set expandtab #auto tab
      set relativenumber #shows relative number to current line
      set number #shows line number
    `

Add permanent authenticating with git ssh repositories
https://confluence.atlassian.com/bitbucketserver/permanently-authenticating-with-git-repositories-776639846.html

Global gitignore
https://help.github.com/articles/ignoring-files/
https://gist.github.com/octocat/9257657
added: 

    # Pycharm #
    ###########
    .idea

View markdown files in preview
https://github.com/toland/qlmarkdown/

    $ brew update
    $ brew cask install qlmarkdown

Add postgres passwords for quick access into databases 

    vi ~/.pgpass
    paste `<DATABASE_URI>:<PORT>:<DATABASE_NAME>:<USERNAME>:<PASSWORD>`
    
    

以上是关于markdown 有用的Mac升级/设置的主要内容,如果未能解决你的问题,请参考以下文章

markdown 我有用的Mac应用程序

markdown 有关如何在Mac OS X上安装Fish shell的说明,包括Oh My Fish!。还包括几个有用的功能。

markdown [设置mac for dev] #mac

markdown 有用的vscode设置

markdown 有用的系统命令和设置

markdown mac http设置的注释