Advantages and disadvantages between zsh and emacs’ (e)shell

Regarding M-x eshell: Eshell is not a stand-alone shell; it’s implemented in pure elisp, so can’t be run outside emacs, which is why it’s not one of the standard shells. It doesn’t have its own scripting language like bash/zsh/etc. have; it has elisp, and some command interpretation stuff to make calling elisp a little cleaner. … Read more

Using Travis CI for testing on UNIX shell scripts

Absolutely. I made a simple test here: https://travis-ci.org/soulseekah/test-shunit2-travis My .travis.yml file is: language: bash before_script: – curl -L “https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shunit2/shunit2-2.1.6.tgz” | tar zx script: – bash equality_test.sh Repository: https://github.com/soulseekah/test-shunit2-travis

How can I launch powershell.exe with the “default” colours from the PowerShell shortcut?

Edit your profile script (pointed to by $profile) and set the desired colors yourself: # set regular console colors [console]::backgroundcolor = “darkmagenta” [console]::foregroundcolor = “darkyellow” # set special colors $p = $host.privatedata $p.ErrorForegroundColor = “Red” $p.ErrorBackgroundColor = “Black” $p.WarningForegroundColor = “Yellow” $p.WarningBackgroundColor = “Black” $p.DebugForegroundColor = “Yellow” $p.DebugBackgroundColor = “Black” $p.VerboseForegroundColor = “Yellow” $p.VerboseBackgroundColor = … Read more

mongo shell script won’t let me include “use “

In a mongo script you can use the db.getSiblingDB(‘new_db_name’) to get a reference of a new database. So, it it not mandatory to give the database name in the command line. You can use the script.js: db = db.getSiblingDB(‘new_db_name’); print(db); // the rest of your code for database “new_db_name” and the output of this script … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)