terminal

How to set Android SDK, NDK and JDK paths in ubuntu 12.04

左心房为你撑大大i 提交于 2019-12-21 05:16:09
问题 Below is my .bashrc file # ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) # for examples $export=$PATH:./home/ssrp/workspace/android-sdk-linux/platform-tools $export PATH=$PATH:./home/ssrp/workspace/android-sdk-linux/tools $export JAVA_HOME=./usr/lib/jvm/java-6-openjdk $export NDK=./home/ssrp/workspace/android-ndk-r9 # If not running interactively, don't do anything [ -z "$PS1" ] && return # don't put duplicate

shift up-arrow doesn't highlight text emacs iterm2

梦想的初衷 提交于 2019-12-21 04:42:49
问题 I recently had help fixing M-left and so forth here: emacs in terminal meta arrow keybindings, but am unable to fix Shift-up using a similar solution. When I try shift-up I get an error <select> is undefined . I've tried re-mapping it using: (add-hook 'term-setup-hook '(lambda () (define-key function-key-map "\e[1;9A" [M-up]) (define-key function-key-map "\e[1;9B" [M-down]) (define-key function-key-map "\e[1;9C" [M-right]) (define-key function-key-map "\e[1;2A" [S-up]) (define-key function

Gnome-terminal not starting due to error in python script related to GI

烂漫一生 提交于 2019-12-21 04:38:06
问题 When I run gnome-terminal, I get the following error: Traceback (most recent call last): File "/usr/bin/gnome-terminal", line 9, in <module> from gi.repository import GLib, Gio File "/usr/local/lib/python3.4/dist-packages/gi/__init__.py", line 39 print url This looks odd to me, because the script is located in a python 3.4 installation but is calling print as if it was a python2 script (which is why the error occurs). I tried to reinstall the package gi with pip3, but it keeps installing this

Pausing & Resume Android Repo Sync

旧时模样 提交于 2019-12-21 04:28:12
问题 I am trying to sync the following repo repo init -u git://github.com/SlimRoms/platform_manifest.git -b jb The problem is i have started the repo sync around 30 hours ago & its still not complete. (i have a 1Mbps connection). I dont want to keep the laptop switched for so long now & would like to pause the current sync & resume later. So, i searched a bit, and found out that to pause the current download/sync i could use: ctrl+C ctrl+Z just close the terminal (it will resume download next time

Fish shell command subsitution

牧云@^-^@ 提交于 2019-12-21 04:26:26
问题 Is there a better way to do command substitution in fish shell? In bash I can do: ~> echo $(whoami) => user ~> echo "I am: $(whoami)" = > I am: user But in fish is looks like I have to do: ~> echo (whoami) => user ~> echo "I am: (whoami)" => "I am: (whoami)" ~> set who (whoami); echo "I am: $who" => I am: user Is that the recommended way to do command substitution in fish where the substitution needs to happen inside a quoted string? 回答1: You could just pull the substitution out of the quotes

PhpDocumentor installed via PEAR on OSX not working - missing files?

丶灬走出姿态 提交于 2019-12-21 04:16:45
问题 I'm basically new to PEAR (and PhpDocumentor); I installed PhpDocumentor using the PEAR CLI, and everything seemed to go fine... until I went to use it, at which point I got the following error: Warning: require(PhpDocumentor/phpDocumentor/phpdoc.inc): failed to open stream: No such file or directory in /usr/local/bin/phpdoc on line 40 Fatal error: require(): Failed opening required 'PhpDocumentor/phpDocumentor/phpdoc.inc' (include_path='.:/usr/share/pear') in /usr/local/bin/phpdoc on line 40

How can you use Javascript in terminal for w3m?

旧城冷巷雨未停 提交于 2019-12-21 04:09:15
问题 I found the text browser w3m which is the best so far in my opinion. However, it is main problem is Javascript. I cannot see comments at all in Stackoverflow when I use it. I am not sure what is the restriction in letting Javascript to be in terminal. How can you enable at least some of JavaScript for Terminal such that comments are visible? 回答1: Javascript requires a Javascript interpreter. If your user-agent doesn't understand a particular kind of scripting, it simply ignores it. To get a

Why can't I display a unicode character in the Python Interpreter on Mac OS X Terminal.app?

做~自己de王妃 提交于 2019-12-21 03:57:39
问题 If I try to paste a unicode character such as the middle dot: · in my python interpreter it does nothing. I'm using Terminal.app on Mac OS X and when I'm simply in in bash I have no trouble: :~$ · But in the interpreter: :~$ python Python 2.6.1 (r261:67515, Feb 11 2010, 00:51:29) [GCC 4.2.1 (Apple Inc. build 5646)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> ^^ I get nothing, it just ignores that I just pasted the character. If I use the escape \xNN

Unjar to a specific destination

a 夏天 提交于 2019-12-21 03:57:24
问题 Is there a way to extract a jar file to a specific directory? For instance, I'm in foo directory, which contains the subfolder bar; all my jars files are at the same level at bar. So I passed the command jar xf my.jar -C bar/ However when I went to bar folder, the files were not extracted. Is there a way for me to do it without having to move the jar file to bar? Thanks 回答1: I don't think jar supports this, but unzip does. Try: unzip my.jar -d bar The behaviour is the same as the jar command,

How to fix MacBook showing Android hostname in Terminal? [closed]

南笙酒味 提交于 2019-12-21 03:51:08
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I use terminal quite often, for some reason all of a sudden Terminal is showing a strange android-1e1c8882e08308f9 hostname (see image) in the prompt. I've checked my MacBook's hostname in Sharing Preferences and this is correct, but Terminal is still showing the android hostname. Can anyone advise? Thanks 回答1: