1
0
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.

7 changed files with 43 additions and 23 deletions

View File

@ -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
View 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
View File

@ -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"

View File

@ -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
View 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

View File

@ -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>

View File

@ -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