GithubHelp home page GithubHelp logo

shyazusa / dotfile Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 80 KB

dotfile

License: MIT License

Shell 17.86% JavaScript 4.78% CSS 30.40% Vim Script 46.96%
dotfiles bashrc zshrc editorconfig eslintrc stylelintrc vimperator gitmessage vimrc zpreztorc

dotfile's Introduction

dotfile

  • .bashrc
  • .cvimrc
  • .editorconfig
  • .eslintrc
  • .gitmessage.txt
  • .stylelintrc
  • .tigrc
  • .vimperatorrc
  • .vimrc
  • .zpreztorc
  • .zprofile
  • .zshrc

Use zsh

$ yum install zsh
$ zsh
$ cd ~
$ rm .zlogin .zlogout .zprofile .zshenv .zshrc
$ git clone --recursive https://github.com/sorin-ionescu/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
$ setopt EXTENDED_GLOB
$ for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
$ ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
$ done
$ exec $SHELL

Use my dotfiles

$ cd ~/Documents/GitHub
$ git clone https://github.com/shyazusa/dotfile.git
$ cp -rf ~/Documents/GitHub/dotfile/.* ~/.

If Use neon-font.css in VS Code

$ cp -rf ~/Documents/GitHub/dotfile/neon-font.css ~/.
  1. Install the Custom CSS and JS Loader extension
  2. Tell Custom CSS and JS Loader to use the CSS file included with adding an import line to your VS Code settings.json file:
  "vscode_custom_css.imports": [
    "file:///Users/your_pc_user_name/neon-font.css"
  ],
  1. Run Reload Custom CSS and JS in VS Code

Use my gitfiles

$ git config --global core.commentchar ";"
$ git config --global commit.template ~/dotfile/.gitmessage.txt
$ git config --global init.templatedir '~/dotfile/.git_template'

Use pre-commit

$ cd "your project path"
$ cp ~/dotfile/.git_template/hooks/pre-commit .git/hooks/

Use prepare-commit-msg

$ cd "your project path"
$ cp ~/dotfile/.git_template/hooks/prepare-commit-msg .git/hooks/

Test prepare-commit-msg

$ git checkout id/000
$ touch test
$ git add test
$ git commit

dotfile's People

Contributors

shyazusa avatar

Watchers

 avatar

dotfile's Issues

gitmessageファイルで目的を記述させるようにしたい

問題・課題

  • そのコミットの理由や,影響範囲は記述されるようにしているが,そもそもの目的が記述されていない

対応方法

  (#{issue}) comment

+ ; この変更の目的は何ですか? >

  ; この変更はなぜ必要でしたか? >

その他

そもそもこれってTitleに記述されるものなの…… かな?

.vimrcの整理

あのJasminSettingもそうだけれど、もう使ってないものない?
一度整理しようと思う。

git commitのコメントでgithubのissue番号をリンクに出来ない問題の解決

問題・課題

git commitした際のコメントテンプレート内にて,「#(シャープ)」から始まるissue番号を書くと,コメントアウトとして認識されてしまう問題

対応方法

gitの設定からコメントアウトに使う文字を「;(セミコロン)」に変更する.
.gitmessage.txtもコメントアウトを「;(セミコロン)」に変える.

その他

gitの設定を変えないといけなくなるので,そこだけは注意を.

.eslintrcファイルの追加

.eslintrcの汎用?ファイルを追加する。
ササッと記述するときに使うローカルな設定なイメージ。
プロジェクトで使用するものはそっちに.eslintrc作るだろうし。

Piyo と Tsubasa をこっちに混ぜる

PiyoTsubasa をhanaに統一する。
PiyoTsubasa にはまだcronのテストくらいしか機能載っけてないし、
そのclonもほぼ使われていないslackチームで発言しているのみ……

自分の個人用チームにいるhanaに統一しちゃっても良いと思うんだ。

.gitmessage.txtの内容を変更する

現在の.gitmessage.txtは以下の通り.

(#{issue}) comment


# どのような変更ですか? >

# この変更によって,どんなことが起こりますか? >

# なぜその変更が必要でしたか? >

# (fix #000) comment
# と書くと関連するissueをclose出来る
# fix は
# close, closes, closed
# fix, fixes, fixed
# resolve, resolves, resolved
# でも良い。
# comment は以下参考
# タイトルを50文字以内におさめる.命令形で文頭を大文字に.文末のピリオドは不要
# タイトルの後は一行空けて本文を書く.
# 本文は以下に答えるように記述する
#
# 以下,commitの例文
# 例文)
# - Fix A in B (Bの箇所のAを修正)
# - Fix for #000 (#000に対する修正)
# - Add A to B (AをBに追加)
# - Remove A from B (AをBから除去)
# - Remove unused A (不必要なAを除去)
# - Use A instead of B (AをBの代わりに用いる)
# - Change A to B (AをBに変更)
# - A in B out (AをBの変わりに導入)
# - Address an issue with A (Aの問題を解決)
# 特殊)
# - resurrect (蘇えらせる)
# - kick out (好ましくないものを取り除く)
# - R.I.P. (安らかに眠れ ~Removeでは語りきれない思いがあるとき~)
# - cosmetic change (インデントを美しくした時など)
#
# 前置詞)
# - with P (Pと一緒に、伴って)
# - for P (Pのために)
# - instead of P (Pの代わりに)

この中でも,

# どのような変更ですか? >

# この変更によって,どんなことが起こりますか? >

# なぜその変更が必要でしたか? >

の部分,もう少し考えて作り直したい.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.