Skip to content

Commit f8747f7

Browse files
committed
add tab according to Mac and linux
1 parent 70135fa commit f8747f7

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.overrides/git_diff.rst

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,35 @@ El comando `git diff` tiene datos que pueden llegar a ser inútiles como por eje
1313
1414
Para ellos debemos instalar brew. Si no lo tienes instalado puedes seguir el instructivo de instalación Brew_.
1515

16+
.. tabs::
17+
18+
.. tab:: Mac
19+
20+
Para instalar brew en Mac ejecutar el siguiente comando::
21+
22+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
23+
24+
.. tab:: Linux
25+
26+
Para instalar brew en Linux ejecutar
27+
28+
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
29+
30+
Luego ejecutar los siguientes comandos::
31+
32+
test -d ~/.linuxbrew && eval $(~/.linuxbrew/bin/brew shellenv)
33+
test -d /home/linuxbrew/.linuxbrew && eval $(/home/linuxbrew/.linuxbrew/bin/brew shellenv)
34+
test -r ~/.bash_profile && echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.bash_profile
35+
echo "eval \$($(brew --prefix)/bin/brew shellenv)" >>~/.profile
36+
37+
Ten en cuenta que si usas un sistema Debian/Ubunut se utiliza el archivo `~/.profile` mientras que
38+
para sistemas CentOS/Fedora/RedHat se utiliza `~/.bash_profile`
39+
1640
Una vez instalado brew, hay que instalar podiff, para ellos ejectar el siguiente comando:
1741

1842
.. code-block:: bash
1943
20-
brew install pdiff
44+
brew install podiff
2145
2246
Luego abrir el archivo de configuración del respositorio local y escribir al final:
2347

0 commit comments

Comments
 (0)