Linux 个人配置

以你之姓@ 2022-08-21 02:27 183阅读 0赞

.bash_aliases

  1. alias gst='git status'
  2. alias gl='git pull'
  3. alias gp='git push'
  4. alias gd='git diff | mate'
  5. alias gau='git add --update'
  6. alias gc='git commit -v'
  7. alias gca='git commit -v -a'
  8. alias gb='git branch'
  9. alias gba='git branch -a'
  10. alias gbd='git branch -d'
  11. alias gco='git checkout'
  12. alias gcob='git checkout -b'
  13. alias gcot='git checkout -t'
  14. alias gcotb='git checkout --track -b'
  15. alias glog='git log'
  16. alias glogp='git log --pretty=format:"%h %s" --graph'
  17. #按时间排序,以列的形式输出当前目录和文件
  18. alias lsl='ls -lrt'

.vimrc

  1. set nu
  2. " search about set hlsearch set incsearch " tab about
  3. set shiftwidth=4
  4. set tabstop=4
  5. " 将tab转换成空格 set expandtab syntax on set nobackup set noswapfile if exists('$TMUX') let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\" let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\" else let &t_SI = "\<Esc>]50;CursorShape=1\x7" let &t_EI = "\<Esc>]50;CursorShape=0\x7" endif " Take <tab> for word complete only
  6. " The 'complete' option controls where the keywords are searched (include files, tag files, buffers, and more). " The 'completeopt' option controls how the completion occurs (for example, whether a menu is shown).
  7. if exists('did_completes_me_loaded') || v:version < 700
  8. finish
  9. endif
  10. let did_completes_me_loaded = 1
  11. function! s:completes_me(shift_tab)
  12. let dirs = ["\<c-p>", "\<c-n>"]
  13. if pumvisible()
  14. if a:shift_tab
  15. return dirs[0]
  16. else
  17. return dirs[1]
  18. endif
  19. endif
  20. " Figure out whether we should indent. let pos = getpos('.') let substr = matchstr(strpart(getline(pos[1]), 0, pos[2]-1), "[^ \t]*$") if strlen(substr) == 0 | return "\<Tab>" | endif if a:shift_tab return "\<c-p>" else return "\<c-n>" endif endfunction inoremap <expr> <plug>completes_me_forward <sid>completes_me(0) inoremap <expr> <plug>completes_me_backward <sid>completes_me(1) imap <Tab> <plug>completes_me_forward

.gitignore_global

  1. # Compiled source #
  2. ###################
  3. *.com
  4. *.class
  5. *.dll
  6. *.exe
  7. *.o
  8. # Packages #
  9. ############
  10. *.7z
  11. *.dmg
  12. *.gz
  13. *.iso
  14. *.rar
  15. *.tar
  16. *.zip
  17. # Logs and databases #
  18. ######################
  19. *.log
  20. *.sql
  21. *.sqlite
  22. # OS generated files #
  23. ######################
  24. .DS_Store
  25. .DS_Store?
  26. ._*
  27. .Spotlight-V100
  28. .Trashes
  29. Icon?
  30. ehthumbs.db
  31. Thumbs.db
  32. # gtags #
  33. #####################
  34. GPATH
  35. GRTAGS
  36. GSYMS
  37. GTAGS

.tmux.conf

  1. setw -g mode-keys vi
  2. set -g prefix C-x
  3. unbind C-b
  4. set-option -g allow-rename off

发表评论

表情:
评论列表 (有 0 条评论,183人围观)

还没有评论,来说两句吧...

相关阅读

    相关 个人随笔之Redis配置

    一、Redis简介 1NoSQL简介 目前市场主流数据存储都是使用关系型数据库。每次操作关系型数据库时都是I/O操作,I/O操作是主要影响程序执行性能原因之一,连接数据

    相关 一招同步 IDEA 个人配置

    > IDEA版本:2020.1 【原因】使用intellij idea很长一段时间,软件相关的配置也都按照自己习惯的设置好,如果需要重装软件,还得需要重新设置 【操作】: