gf3 / dotfiles Goto Github PK
View Code? Open in Web Editor NEWConfigurations for the tools I use every day
License: MIT License
Configurations for the tools I use every day
License: MIT License
Your molotov colorscheme is amazing. I've been using it for a while now. It would be great if it were in a separate repo, so it was easier to clone independent of other files here. Much better than pointing to specific file within a dotfiles repo!
In .bash_prompt
, the setting WHITE=$(tput setaf 256)
causes the color of words intended to be white to be that of the previous (i.e. the word "at" in the prompt ends up being ${BOLD}${MAGENTA}
, the word "in" in the prompt ends up being $ORANGE
).
Setting WHITE=$(tput setaf 0)
instead fixes this issue.
test
Not sure if you've run into this at all. I'm using your .bash_prompt
, which works perfectly on ubuntu. On CentOS however, switching to another user sudo su
style will lead to errors in the prompt:
murrayju at centos in /
$ sudo su postgres
[sudo] password for murrayju:
bash: parse_git_branch: command not found
postgres at centos in /
It is as if it is still using the original user's value of PS1
, but can't access the functions defined in .bash_prompt
. I don't know if this is something that could be addressed in the script, or if it would be better addressed through some configuration of CentOS.
There is a simple workaround though add the -
argument: sudo su - postgres
After running your bash install command I get the following output:
\033[1;32m=> Checking dependencies\033[0m
\033[1;32m✔\033[0m git
\033[1;32m✔\033[0m hg
\033[1;32m✔\033[0m pygmentize
\033[1;32m✔\033[0m tree
\033[1;32m✔\033[0m vim
\033[1;32m✔\033[0m xmllint
~/.dotfiles ~
\033[1;32m=> Updating\033[0m
From git://github.com/gf3/dotfiles
* branch master -> FETCH_HEAD
Already up-to-date.
\033[1;32m=> Backup up old files (/Users/kat/.dotfiles- backup/201311171446.12)\033[0m
\033[1;32m=> Installing\033[0m
~
\033[1;32m=> Done\033[0m
fun! CleanExtraSpaces()
let save_cursor = getpos(".")
let old_query = getreg('/')
:%s/\s\+$//e
call setpos('.', save_cursor)
call setreg('/', old_query)
endfun
map <silent> <leader>c :call CleanExtraSpaces()<cr>
" Auto cleanup when saving
autocmd BufWritePre * :call CleanExtraSpaces()
" my repo: https://bitbucket.org/sergio/vimfiles/src
I was searching for how to clear search and not have the last pattern reappear when sourcing a file.
I came across your config, and was wondering: is a particular reason why you decided to use the noh
command over let @\ = ""
?
dotfiles/.config/nvim/init.vim
Lines 159 to 162 in 2b1e858
Found it over at http://thecatatemysourcecode.posterous.com/
Saves the undo history, even when VIM was closed.
set undodir=~/.vim/undo
set undofile
Wasn't sure how to send a pull request for a single commit after my forks has diverged from yours , but it's a simple change, here it is https://github.com/rtgibbons/dotfiles/commit/86b5a6f7ad867368b68b80e17fee0c5348647041
I test with Snow Leopards system Ruby and Ruby 1.9.2 p180
Using a custom .keylayout
will make ~/.snippets/_-gf3.snippets
redundant. As a bonus, you would be able to type →
and ←
in any application.
Here’s my custom .keylayout
for AZERTY keyboards: https://github.com/mathiasbynens/custom-azerty.keylayout I realize you’re using QWERTY, but it might give you some ideas anyway.
alias ips="ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'"
This alias gives me some trouble, when I try to run the alias it prints the full line instead of just the ip. What's weird is that when I run the command like this:
ifconfig -a | perl -nle'/(\d+\.\d+\.\d+\.\d+)/ && print $1'
It works without any problems. Any solutions?
Not really an issue, but I was wondering why you’re loading most files like this:
# Prompt
if [ -f ~/.bash_prompt ]; then
source ~/.bash_prompt
fi
When for .commonrc
it’s done this way:
# Common junk
[[ -s "$HOME/.commonrc" ]] && source "$HOME/.commonrc"
Wouldn’t the same technique as before work just as well?
nnoremap ' ``
nnoremap '
'
by default looks at line and looks at column pos + line.
is inherently more useful so remapping it to '
makes dealing with marks so much easier
Much needed
Although you already included rbenv in your current version, many people use rvm.
I'll send you a short commit adding the necessary entry to .commonrc.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.