1
0
mirror of https://github.com/danbee/dotfiles-local synced 2025-03-04 08:49:07 +00:00

Compare commits

...

5 Commits

Author SHA1 Message Date
766726309e Rewrite os in shell 2023-01-23 17:45:23 -06:00
Daniel Barber
93f6e94d77 Use rg for FZF 2023-01-23 16:17:18 -06:00
Daniel Barber
fa6d499a81 Add sanify alias 2023-01-23 16:16:43 -06:00
cf8da22adf Add symbol for rust 2023-01-23 16:15:55 -06:00
1da4d43b73 Disable direnv 2023-01-23 16:15:55 -06:00
7 changed files with 23 additions and 43 deletions

View File

@ -16,3 +16,6 @@ alias be="bundle exec"
alias fuckit="git reset HEAD --hard"
alias httpserver="ruby -run -e httpd"
# Shell
alias sanify="stty sane"

View File

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

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

View File

@ -19,6 +19,9 @@ symbol = " "
[elixir]
symbol = " "
[rust]
symbol = " "
[custom.os]
disabled = false
command = "os"

View File

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

View File

@ -1,2 +1,4 @@
let $FZF_DEFAULT_COMMAND='rg --files'
map <C-P> :FZF<CR>
map <C-B> :Buffers<CR>

View File

@ -34,20 +34,6 @@ fi
export PATH=/usr/local/share/npm/bin:$PATH
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
[[ -f ~/.zshrc.env ]] && source ~/.zshrc.env