How to make the prompt like this image(link)? - prompt

http://min.us/muKpIB16z
Is that zsh?
Could somebody share the PS1 code to everyone :P?
Thank you.

Use __git_ps1:
PS1='\u#\h:\w$(__git_ps1)\$ '

it's probably a theme from oh-my-zsh, git support is part of a lot of them. see their theme gallery for lots of examples…

Related

How do I change Sublime Text 3 user config directory?

Sublime Text 3 user configuration directory is, by default, at:
~/.config/sublime-text-3/
I would like to change it to somewhere else. Is it possible? The workaround I've done so far is to create the above directory as a symbolic link pointing to the folder I want, but it doesn't seem right. Is there a better way of doing this?
Thanks for your attention in advance.
It's been one year and no answer, so I'll describe what I've been doing, so I can close this topic. The best way to deal with it is by creating a symbolic link, as I mentioned before. The second way to do this is by editing Sublime's code, what I didn't figure out completly how to do, but I know it's possible. If someone knows a better solution, please post in the comments. This topic is being closed now.

Configure Textmate 2 for rbenv

What is the best way to setup Textmate 2 to use rbenv?
I read a Textmate mailing list thread about setting up rbenv but haven't found the right solution yet.
Update your ~/.tm_properties to include:
TM_RUBY = "$HOME/.rbenv/shims/ruby"
PATH = "$HOME/.rbenv/bin:$PATH"
Thanks to uberfork for this helpful article: Integrate rbenv with Textmate.
The answers supplied here didn't work for me. Here's what did:
Preferences -> Variables
add this to the front of PATH: $HOME/.rbenv/bin:$HOME/.rbenv/shims:
set TM_RUBY to this: $HOME/.rbenv/shims/ruby
populate RBENV_VERSION with your version. example: 2.1.0-preview1
(and make sure the checkboxes for each of those variables are selected)
For me adding /usr/local/var/rbenv/shims to TextMate's PATH variable did the trick.
PATH TextMate variable looks like this /usr/local/var/rbenv/shims:$PATH:/opt/local/bin:/usr/local/bin:/usr/texbin.
Just to supplement all answers above - if you would like to use different ruby version per project just create a new .tm_properites file inside root of the project with the correct RBENV_VERSION variable.

webpage screenshot khtml2png alternatives

Are there any alternatives to khtml2png ie. command line tools to create png screenshots of webpages?
I would like to run it on a server to grab snapshots of certain sites.
Linux only please. webkit2png is pretty awesome on osx...
Thanks!
http://www.paulhammond.org/webkit2png/
see this
with python
python /path/to/webkit2png http://www.google.com/
also you can do it with firefox !?
firefox -savepng http://www.web-screen-capture.com/
https://www.mashape.com/warting/scrapegoat/
You just need curl
I know I'm a bit late but maybe it will help someone :)
There's a nice command line tool called gnome-web-photo. Usage is simple as this:
gnome-web-photo http://google.com myscreenshot.png

How to uninstall feature without Feature.xml file?

I have feature which is not correctly installed on my website.
How can I uninstall it without Feature.xml file and without feature id?
Rather not. :D
The answer is here:
http://www.gilham.org/Blog/Lists/Posts/Post.aspx?List=aab85845-88d2-4091-8088-a6bbce0a4304&ID=229
Firstly run the WssAnalyzeFeatures tool.
Next it will produce output file named: ContentDeploymentFeatures.txt.
Take appropriate feature id and run stsadm commands: deactivate and uninstall feature with id and force option.
And it's done! :D
There WssAnalizyFeatures and FeatureCleaner that might help you out.

Do we have any asp vbs complete for vim?

I see a lot of complete for gvim such as php, c , css, but I can't find any complete form aspvbs
Are you talking about auto completion? Do you know about ctags? (http://ctags.sourceforge.net/).
Anyway, here's an OK solution. Well actually i haven't tested it too much yet but it seems to work fairly well. Assuming you are using ctags, add
--langmap=Asp:*.vbs
to your ~/.ctags file and it will tell ctags to generate tags for your *.vbs files (as Asp, whatever that is =D). I'm don't know much about asp / vbs and their relationship (not sure i want to, hehe), so once again I'm telling you I don't know how well this works. Perhaps someone can fill in on this?
I guess even better... Add your own language (and share with me) : )
http://ctags.sourceforge.net/EXTENDING.html
I don't use Vim much, but 5 seconds of googling turned up this: http://www.vim.org/scripts/script.php?script_id=993 - is that what you're looking for, or something different?

Resources