Skip to content

Commit

Permalink
Update Makefile to use mas properly in tmux.
Browse files Browse the repository at this point in the history
See mas-cli/mas#16 (comment) for reference.
  • Loading branch information
jsatk authored and Jesse Atkinson committed Oct 22, 2018
1 parent b35f210 commit 71f4ff5
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 9 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ formulae = \
mutt \
node-build \
postgresql \
reattach-to-user-namespace \
ruby-build \
sbt \
scala \
Expand All @@ -74,7 +75,7 @@ update: | install
gem update
npm update --global --quiet
vim +VundleUpdate +quitall
mas upgrade
reattach-to-user-namespace mas upgrade

clean: | install
brew cleanup
Expand Down
1 change: 1 addition & 0 deletions config/fish/fishd.a45e60d94c2b
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ SET fish_pager_color_completion:normal
SET fish_pager_color_description:555\x1eyellow
SET fish_pager_color_prefix:cyan
SET fish_pager_color_progress:cyan
SET fish_user_paths:/usr/local/sbin\x1e/usr/local/sbin\x1e/Users/jesseatkinson/\x2erubies/2\x2e0\x2e0\x2dp648/bin
SET fry_auto_switch:0
SET fry_installer:ruby\x2dbuild
SET fry_prepend_path:0
Expand Down
3 changes: 3 additions & 0 deletions config/fish/functions/mas.fish
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
function mas --description 'Make mas work in tmux'
reattach-to-user-namespace mas $argv
end
3 changes: 0 additions & 3 deletions config/fish/functions/megatest.fish

This file was deleted.

5 changes: 5 additions & 0 deletions tmux.conf.local
Original file line number Diff line number Diff line change
Expand Up @@ -114,3 +114,8 @@ tmux_conf_new_session_prompt=true
# this is the place to further customize tmux's configuration

# set -g history-limit 10000

# remap prefix from 'C-b' to 'C-a'
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
13 changes: 8 additions & 5 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ set splitbelow
set splitright

" Allows jumping between splits with Ctrl + movement keys.
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" nnoremap <C-J> <C-W><C-J>
" nnoremap <C-K> <C-W><C-K>
" nnoremap <C-L> <C-W><C-L>
" nnoremap <C-H> <C-W><C-H>

" When a file has been detected to have been changed outside of Vim and
" it has not been changed inside of Vim, automatically read it again.
Expand Down Expand Up @@ -207,6 +207,9 @@ set linebreak
" Turns line wrapping on
set wrap

" wrap lines without changing the amount of indent.
set breakindent

" Turns off physical line wrapping (ie: automatic insertion of newlines)
set textwidth=0
set wrapmargin=0
Expand Down Expand Up @@ -740,7 +743,7 @@ augroup END
augroup ft_conf
autocmd!

au BufNewFile,BufRead bash_profile,gitconfig set filetype=conf
au BufNewFile,BufRead *.conf,bash_profile,gitconfig set filetype=conf
autocmd FileType conf setlocal foldmethod=marker
autocmd Filetype conf setlocal foldmarker={{{,}}}
augroup END
Expand Down

0 comments on commit 71f4ff5

Please sign in to comment.