mirror of
https://github.com/danbee/dotfiles-local
synced 2025-03-04 08:49:07 +00:00
Compare commits
No commits in common. "766726309e01b2beecc23c4c7d5e654bf0014ca1" and "5a132d6697dc34ab0da83bee7af803a535645592" have entirely different histories.
766726309e
...
5a132d6697
@ -16,6 +16,3 @@ alias be="bundle exec"
|
|||||||
alias fuckit="git reset HEAD --hard"
|
alias fuckit="git reset HEAD --hard"
|
||||||
|
|
||||||
alias httpserver="ruby -run -e httpd"
|
alias httpserver="ruby -run -e httpd"
|
||||||
|
|
||||||
# Shell
|
|
||||||
alias sanify="stty sane"
|
|
||||||
|
|||||||
21
bin/lib/os.rb
Normal file
21
bin/lib/os.rb
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
class OS
|
||||||
|
ICONS = {
|
||||||
|
"Darwin" => "",
|
||||||
|
"Linux" => "",
|
||||||
|
"FreeBSD" => "",
|
||||||
|
}
|
||||||
|
|
||||||
|
def os
|
||||||
|
"#{icon} #{name}"
|
||||||
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def name
|
||||||
|
@os ||= `uname -s`.strip
|
||||||
|
end
|
||||||
|
|
||||||
|
def icon
|
||||||
|
ICONS[name]
|
||||||
|
end
|
||||||
|
end
|
||||||
18
bin/os
18
bin/os
@ -1,17 +1,5 @@
|
|||||||
#!/bin/sh
|
#!/usr/bin/env ruby
|
||||||
|
|
||||||
OS=`uname -s`
|
require_relative "lib/os"
|
||||||
|
|
||||||
case $OS in
|
puts OS.new.os
|
||||||
Darwin)
|
|
||||||
printf ""
|
|
||||||
;;
|
|
||||||
Linux)
|
|
||||||
printf ""
|
|
||||||
;;
|
|
||||||
FreeBSD)
|
|
||||||
printf ""
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
printf " $OS\n"
|
|
||||||
|
|||||||
@ -19,9 +19,6 @@ symbol = " "
|
|||||||
[elixir]
|
[elixir]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
|
||||||
[rust]
|
|
||||||
symbol = " "
|
|
||||||
|
|
||||||
[custom.os]
|
[custom.os]
|
||||||
disabled = false
|
disabled = false
|
||||||
command = "os"
|
command = "os"
|
||||||
|
|||||||
5
vim/vimrc.d/ctrlp.vim
Normal file
5
vim/vimrc.d/ctrlp.vim
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
if executable('rg')
|
||||||
|
set grepprg=rg\ --color=never
|
||||||
|
let g:ctrlp_user_command = 'rg %s --files --color=never --glob ""'
|
||||||
|
let g:ctrlp_use_caching = 0
|
||||||
|
endif
|
||||||
@ -1,4 +1,2 @@
|
|||||||
let $FZF_DEFAULT_COMMAND='rg --files'
|
|
||||||
|
|
||||||
map <C-P> :FZF<CR>
|
map <C-P> :FZF<CR>
|
||||||
map <C-B> :Buffers<CR>
|
map <C-B> :Buffers<CR>
|
||||||
|
|||||||
14
zshrc.local
14
zshrc.local
@ -34,6 +34,20 @@ fi
|
|||||||
export PATH=/usr/local/share/npm/bin:$PATH
|
export PATH=/usr/local/share/npm/bin:$PATH
|
||||||
export NODE_PATH=/usr/local/lib/node_modules
|
export NODE_PATH=/usr/local/lib/node_modules
|
||||||
|
|
||||||
|
# Enable direnv
|
||||||
|
if (( $+commands[direnv] )); then
|
||||||
|
#eval `direnv hook $0`
|
||||||
|
_direnv_hook() {
|
||||||
|
eval "$(direnv export $0)";
|
||||||
|
}
|
||||||
|
typeset -a precmd_functions
|
||||||
|
if [[ -z $precmd_functions[(r)_direnv_hook] ]]; then
|
||||||
|
precmd_functions+=_direnv_hook;
|
||||||
|
fi
|
||||||
|
# Make direnv use the system ruby. https://github.com/zimbatm/direnv/issues/42
|
||||||
|
export DIRENV_RUBY=/usr/bin/ruby
|
||||||
|
fi
|
||||||
|
|
||||||
# Environment config
|
# Environment config
|
||||||
[[ -f ~/.zshrc.env ]] && source ~/.zshrc.env
|
[[ -f ~/.zshrc.env ]] && source ~/.zshrc.env
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user