ENE / ENE-hugo

Markdown do site
http://ene.origem.net.br
0 stars 0 forks source link

hman #31

Closed alexandre-mbm closed 7 years ago

alexandre-mbm commented 7 years ago

Depende de #30

alexandre-mbm commented 7 years ago
alexandre-mbm commented 7 years ago
$ shopt -s cdable_vars
$ export HUGO_PROJECT=$(pwd)
$ export md=$HUGO_PROJECT
$ export html=$HUGO_PROJECT/public
$ cd html
$ cd md

Ref.: command line - Why doesn't "cd" work in a shell script? - Ask Ubuntu

alexandre-mbm commented 7 years ago

Nossas verificações serão feitas a partir do seguinte:

$ ssh-add -L
Error connecting to agent: No such file or directory
$ echo $?
2
$ eval $(ssh-agent -s)
Agent pid 27251
$ ssh-add -L
The agent has no identities.
$ echo $?
1
$ ssh-add
Enter passphrase for /home/USER/.ssh/id_rsa: 
Identity added: /home/USER/.ssh/id_rsa (/home/USER/.ssh/id_rsa)
$ echo $?
0

Estudos sugeridos:

Aprofundamentos em código: