git config
루트디렉토리 변경
git 실행시 초기경로를 설정해줍니다.
속성 - 대상에서 --cd-to-home 를 지우고 시작위치를 원하는 경로로 변경합니다.
1. 유저이름 설정
git config --global user.name '이름'
ex)
git config --global user.name 'Connor'
2. 유저이메일 설정
git config --global user.email '아이디@이메일'
ex)
git config --global user.email 'dev.connor.kim@gmail.com'
3. 명령어 단축키 저장
git config --global alias.단축키 '원하는 명령어'
ex)
git config --global alias.history 'log --oneline'
4. 기본생성 브랜치이름 변경
black lives matter 운동에 GitHub 도 동참하기 위해 주종관계를 뜻하는 master 를 main 으로 대체하기 위해 기본생성 브랜치이름을 변경
git config --global init.defaultbranch main
설정 삭제
git config --global --unset 설정
IDE & Text Editor 설정
Eclipse
import static 자동추가
window - preferences - favorites 검색 (java - editor - content assist - favorites) -
오른쪽 탭의 New Type 을 클릭하고 import static 를 사용하고 싶은 패키지명을 입력하고 Apply and Close 를 누른다.
패키지에 있는 메서드 (저는 Math.pow
) 를 클래스명 없이 호출해보면
다음과 같이 import static 이 자동을 호출된 것을 볼 수 있다.
자주쓰고 클래스명이 긴 것들을 등록해두자.
import 자동정리
window - preferences - Save Actions 검색 (Java - Editor - Save Actions) -
Perform the selected actions on save 체크 (저장 시 선택된 행동 수행) -
Organize imports 체크 (import 들 정리) 후 Apply and Close 클릭
저장 시 자동으로 사용하지 않는 import 구문이 사라지는 것을 볼 수 있다.
하이라이트
Matching brackets highlight 색 변경
Window - Preference 창 - Java 탭 - Editor
Matching brackets highlight 를 변경한다.
한글깨짐 UTF 설정
window - preference 창 - general 탭 - workspace 에서
Text file encoding 을 other 로 하고 UTF-8 로 설정한다.
참조
IDE테마 사용법: https://medium.com/@rammelhofdotat/oracle-sql-developer-theme-7c870ce19fb5
IDE테마 GitHub: https://github.com/rhinterndorfer/OracleSqlDeveloper_Theme
편집기 테마 GitHub: https://github.com/ozmoroz/ozbsidian-sqldeveloper
Atom
welcome 창 없애기
file - settings - packages 탭 - welcome 검색 - disable
터미널 .zshrc 설정
oh-my-zsh 를 설치했을 때 생성되는 .zshrc 파일을 뜯어보자.
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="agnoster"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment one of the following lines to change the auto-update behavior
# zstyle ':omz:update' mode disabled # disable automatic updates
# zstyle ':omz:update' mode auto # update automatically without asking
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
# Uncomment the following line to change how often to auto-update (in days).
# zstyle ':omz:update' frequency 13
# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS="true"
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# You can also set it to another string to have that shown instead of the default red dots.
# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f"
# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765)
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
bash 에서 바꿨다면 너의 $PATH 를 바꿔야한다.
oh-my-zsh 설치 경로이다.
테마를 불러오기 위해 테마의 이름을 설정해라.
"random" 이라고 설정하면 랜덤 테마를 불러올 것이다.
이때 어떤 테마인지 확인하려면 echo $RANDOM_THEME
라고 입력해라.
더 자세한 것은
https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
이 문서를 찾아보라.
랜덤테마를 로딩할 때 테마리스트를 설정해라.ZSH_THEME=random
이렇게 변수를 지정하는 것은 $ZSH/themes/
에서 불러오는 대신에 zsh 가 이 변수에서 테마를 불러오게 한다.
빈 배열을 담으면 변수는 아무 효과가 없을 것이다.ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
예시인 듯.
주석을 풀고 대소문자 완성 (CASE_SENSITIVE) 를 사용해라.CASE_SENSITIVE="true"
이 기능은 나중에 찾아보자.
주석을 풀어서 hyphen-insensitive completion 기능을 사용해라.
Case-sensitive completion 은 must be off. _ and - 는 바뀌지 않을 것이다.
자동 업데이트를 위해 다음 주석들을 풀어라.
# zstyle ':omz:update' mode disabled # disable automatic updates
# zstyle ':omz:update' mode auto # update automatically without asking
# zstyle ':omz:update' mode reminder # just remind me to update when it's time
# ZSH_CUSTOM=/path/to/new-custom-folder
커스텀 폴더도 할 수 있다.
어떤 플러그인을 불러오고 싶나 ?
표준 플러그인은 $ZSH/plugins/
에 있다.
커스텀 플러그인은 $ZSH_CUSTOM/plugins/
에 있다.
예시 포맷은 plugins=(rails git textmate ruby lighthouse)
이다.
현명하게 추가해라. 너무 많은 플러그인은 쉘의 시작을 느리게 한다.
개인 aliass 들을 설정해라. oh-my-zsh 를 오버라이딩해라, 플러그인, 테마들을.
Aliass 들은 여기 둘 수 있다.
이 oh-my-zsh 유저들은 aliass 들을 정의하도록 장려한다.
ZSH_CUSTOM folder 내에서.
사용되고 있는 aliases 들의 리스트를 보기 위해서 alias 를 실행 (run) 해라.
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
선호하는 에디터도 바꿀 수 있다.# Preferred editor for local and remote sessions
Compilation flags 는 뭘까 ?
MANPATH 는 뭘까 ?
language 도 바꿀 수 있다.
환경변수
$PATH
각종 빈 폴더들 /opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin$HOME
/Users/connor$ZSH
/Users/connor/.oh-my-zsh정리한 .zshrc
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# ZSH 테마
ZSH_THEME="agnoster"
# ZSH 플러그인 불러오기
plugins=(git)
source $ZSH/oh-my-zsh.sh
###############################################################