Adicionando o repositório:
$ sudo add-apt-repository ppa:webupd8team/java
Caso esse comando não seja encontrado:
$ sudo apt-get install software-properties-common python-software-properties
# no seu bashrc | |
source ~/.bash-gitprompt.sh #<--- https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh | |
PS1='\[\033]0;\u@\h:\W\007\]`if [ $? = 0 ]; then echo "\[\033[01;32m\]✔"; else echo "\[\033[01;31m\]✘"; fi` \[\033[01;37m\ ]\h\[\033[01;34m\] \w\[\033[35m\]$(__git_ps1 " %s") \[\033[01;36m\]$\[\033[00m\] ' | |
# no do root | |
PS1='\[\033]0;\u@\h:\W\007\]`if [ $? = 0 ]; then echo "\[\033[01;32m\]✔"; else echo "\[\033[01;31m\]✘"; fi` \[\033[00;31m\]\u@\h\[\033[01;34m\] \w\[\033[35m\] \[\033[01;31m\]#\[\033[00m\] ' | |
# nas vms | |
PS1='\[\033]0;\u@\h:\W\007\]`if [ $? = 0 ]; then echo "\[\033[01;32m\]✔"; else echo "\[\033[01;31m\]✘"; fi` \[\033[01;33m\]\u@\h\[\033[01;34m\] \w\[\033[35m\] \[\033[01;30m\]$\[\033[00m\] ' |
import sublime, sublime_plugin, datetime | |
class InsertTimeCommand(sublime_plugin.TextCommand): | |
def run(self, edit): | |
date_time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S') | |
for r in self.view.sel(): | |
self.view.replace(edit, r, date_time) |
Adicionando o repositório:
$ sudo add-apt-repository ppa:webupd8team/java
Caso esse comando não seja encontrado:
$ sudo apt-get install software-properties-common python-software-properties