forked from cowboy/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path50_editor.sh
45 lines (36 loc) · 1.21 KB
/
50_editor.sh
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# Editing
if [[ ! "$SSH_TTY" ]] && is_osx; then
export EDITOR='vim'
export LESSEDIT='vim ?lm+%lm -- %f'
else
export EDITOR='vim'
fi
export VISUAL="$EDITOR"
alias q="$EDITOR"
alias qv="q $DOTFILES/link/.{,g}vimrc +'cd $DOTFILES'"
alias qs="q $DOTFILES"
alias cookie='chrome://settings/siteData'
alias startsyn='synergys --config ~/tools/Synergy/synergy.conf'
alias gpo="git push origin"
alias tm="®"
alias sc="vi ~/.ssh/config"
alias sb='source ~/.bashrc && echo source bashrc'
alias c.="cd .."
alias ..="cd ../.."
alias ...="cd ../../.."
alias ic="ibmcloud"
alias cg="cd /Users/scott/gitRepos/DevPattern/"
alias copyR="cp ~/gitRepos/Tools/IBMCodeContent/docs/patterns/templates/readme-template.md ."
alias copyW="cp ~/gitRepos/Tools/IBMCodeContent/docs/patterns/templates/draft-pattern-template.md ."
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
HISTSIZE=1000000
HISTFILESIZE=2000000
export EDITOR=vim
alias vi=vim
source /usr/local/ibmcloud/autocomplete/bash_autocomplete
source ~/.git-completion.bash