-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathterminal_setup
executable file
·27 lines (20 loc) · 1.41 KB
/
terminal_setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# read bashrc at login
printf "%s\n" "# read ~/.bashrc at ssh login" " if [ -f ~/.bashrc ]; then . ~/.bashrc; fi" >> ~/.bash_profile
# Terminal commands
printf "%s\n" "# Terminal commands" " alias ll='ls -lG'" " bind '\"\e[A\": history-search-backward'" " bind '\"\e[B\": history-search-forward'" >> ~/.bash_profile
printf "%s\n" " export GREP_OPTIONS='--color=always'" " export GREP_COLOR='1;35;40'" >> ~/.bash_profile
printf "%s\n" " alias run_biblatex='/GitHub/docker/latex/run_biblatex'" " alias run_latex='/GitHub/docker/latex/run_latex'" >> ~/.bash_profile
# Git Prompt
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt
printf '%s\n' '# Git Prompt' ' export GIT_PROMPT_ONLY_IN_REPO=1' ' source ~/.bash-git-prompt/gitprompt.sh' >> ~/.bash_profile
# Colors terminal
printf '%s\n' '# Colors terminal' ' export CLICOLOR=1' ' export LSCOLORS=GxFxCxDxBxegedabagaced' >> ~/.bash_profile
# Python path
printf '%s\n' '# Python path' ' export PYTHONPATH=/GitHub/cvip-python:$PYTHONPATH' >> ~/.bash_profile
printf '%s\n' '# Python path' ' export PYTHONPATH=/GitHub/CommonTools/submodules/SharedTools/PythonUtils:$PYTHONPATH' >> ~/.bash_profile
# Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# Push only current branch
git config --global push.default simple
# Use atom as default editor
git config --global core.editor "vim"