Giter Site home page Giter Site logo

dotfiles's Issues

Create own repo for molotov colorscheme

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!

vim: remap ' to `

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

Color issues in output during install

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

Errors in prompt after su on CentOS

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

Get readable list of network IPs - problem

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?

Consistent loading of files

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?

Preserve line and column position in vim actions

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

color issues in GNU/Unix Screen

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.