mirror of
https://github.com/danbee/dotfiles-local
synced 2025-03-04 08:49:07 +00:00
Compare commits
5 Commits
5a132d6697
...
766726309e
| Author | SHA1 | Date | |
|---|---|---|---|
| 766726309e | |||
|
|
93f6e94d77 | ||
|
|
fa6d499a81 | ||
| cf8da22adf | |||
| 1da4d43b73 |
@ -16,3 +16,6 @@ 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"
|
||||||
|
|||||||
@ -1,21 +0,0 @@
|
|||||||
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,5 +1,17 @@
|
|||||||
#!/usr/bin/env ruby
|
#!/bin/sh
|
||||||
|
|
||||||
require_relative "lib/os"
|
OS=`uname -s`
|
||||||
|
|
||||||
puts OS.new.os
|
case $OS in
|
||||||
|
Darwin)
|
||||||
|
printf ""
|
||||||
|
;;
|
||||||
|
Linux)
|
||||||
|
printf ""
|
||||||
|
;;
|
||||||
|
FreeBSD)
|
||||||
|
printf ""
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
printf " $OS\n"
|
||||||
|
|||||||
@ -19,6 +19,9 @@ symbol = " "
|
|||||||
[elixir]
|
[elixir]
|
||||||
symbol = " "
|
symbol = " "
|
||||||
|
|
||||||
|
[rust]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
[custom.os]
|
[custom.os]
|
||||||
disabled = false
|
disabled = false
|
||||||
command = "os"
|
command = "os"
|
||||||
|
|||||||
@ -1,5 +0,0 @@
|
|||||||
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,2 +1,4 @@
|
|||||||
|
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,20 +34,6 @@ 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