Toggle snippet (118 lines)
(org-babel-do-load-languages 'org-babel-load-languages '((shell . t)))
#+begin_src sh :results output :session test
echo $TERM
#+end_src
#+RESULTS:
:
: dumb
#+begin_src sh :results output :session test
echo $INSIDE_EMACS
#+end_src
#+RESULTS:
: 27.2,comint
#+begin_src sh :results output :session test
export NO_COLOR=1
#+end_src
#+RESULTS:
#+begin_src sh :results output :session test
echo $NO_COLOR
#+end_src
#+RESULTS:
: 1
#+begin_src sh :results output :session test
guix pull
#+end_src
#+RESULTS:
#+begin_example
Updating channel 'guix' from Git repository at 'https://git.savannah.gnu.org/git/guix.git'...
[ ][Kreceiving objects 2% [# ][Kreceiving objects 5% [## ][Kreceiving objects 7% [Kindexing objects 95% [#################################################### ][Kindexing objects 98% [##################################################### ][KAuthenticating channel 'guix', commits 9edb3f6 to f3d5d57 (3 new commits)...
######################## ][K[################################################### ][K[##############################################################################][KBuilding from this channel:
guix https://git.savannah.gnu.org/git/guix.git f3d5d57
substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 100.0%
#################] 100.0%[K compute-guix-derivation 1004B 132KiB/s 00:00 [##################] 100.0%
Computing Guix derivation for 'x86_64-linux'... -\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\
substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 8.3%substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 16.7%substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 25.0%substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 33.3%substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 41.7%substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 50.0%substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 58.3%substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 66.7%substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 75.0%substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 83.3%substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 91.7%substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 100.0%
The following derivations will be built:
/gnu/store/6s9dsrraqil9h3c1y3wjsd03wl1vkms0-profile.drv
/gnu/store/1giiiwjmj4wnqnss4snagrxc8q6dhhm9-guix-home-modules.drv
/gnu/store/ar8pb4p6lgqyrhkqcj36vdpzxblz6879-guix-system-modules.drv
/gnu/store/dj196mg5l18bfslkrmjnnx7bakhzr4m8-guix-system-tests-modules.drv
/gnu/store/ibb6dqgfv5yzgyxhcnvljyh27qjvh4zr-guix-cli-modules.drv
/gnu/store/jin7ydbcbrzzwz7h1z4fxlvic1qmj52n-guix-packages-base-modules.drv
/gnu/store/lchb46366ydz2m54zi4i1v35z9clra05-guix-cli-core-modules.drv
/gnu/store/ik9393vzwfa88hkvg7srddh0468y6yyj-guix-command.drv
/gnu/store/is3f35mxggdcnlhqrlv7jz0hb0qj3bqr-guix-daemon.drv
44.7 MB will be downloaded
substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 100.0%
substitute: [Kupdating substitutes from 'https://ci.guix.gnu.org'... 100.0%
[K guix-package-cache 1.2MiB/s 00:00 | 64KiB transferred[K guix-package-cache 615KiB/s 00:00 | 192KiB transferred[K guix-package-cache 1.1MiB/s 00:01 | 576KiB transferred[K guix-package-cache 1.2MiB/s 00:01 | 700KiB transferred
[K[K guix-cli 444KiB/s 00:00 | 64KiB transferred[K guix-cli 635KiB/s 00:00 | 253KiB transferred[K guix-cli 597KiB/s 00:00 | 253KiB transferred
[K[K guix-cli-core 470KiB/s 00:00 | 64KiB transferred[K guix-cli-core 637KiB/s 00:00 | 256KiB transferred[K guix-cli-core 1.0MiB/s 00:01 | 640KiB transferred[K guix-cli-core 1.5MiB/s 00:01 | 1.1MiB transferred
#################] 100.0%[K guix-cli-modules 261B 89KiB/s 00:00 [##################] 100.0%
#################] 100.0%[K guix-cli-core-modules 265B 84KiB/s 00:00 [##################] 100.0%
[K[K guix-home 437KiB/s 00:00 | 64KiB transferred[K guix-home 471KiB/s 00:00 | 192KiB transferred[K guix-home 564KiB/s 00:01 | 323KiB transferred
[K guix-packages-base 11.9MiB 640KiB/s 00:00 [ ] 2.1%[K guix-packages-base 11.9MiB 1.3MiB/s 00:01 [# ] 6.3%[K guix-packages-base 11.9MiB 2.0MiB/s 00:01 [## ] 13.6%[K guix-packages-base 11.9MiB 2.8MiB/s 00:01 [#### ] 23.6%[K guix-packages-base 11.9MiB 3.3MiB/s 00:01 [###### ] 33.5%[K guix-packages-base 11.9MiB 2.7MiB/s 00:02 [###### ] 36.7%[K guix-packages-base 11.9MiB 2.9MiB/s 00:02 [######## ] 45.1%[K guix-packages-base 11.9MiB 3.2MiB/s 00:02 [######### ] 55.0%[K guix-packages-base 11.9MiB 3.4MiB/s 00:02 [########### ] 64.5%[K guix-packages-base 11.9MiB 3.6MiB/s 00:02 [############# ] 74.4%[K guix-packages-base 11.9MiB 3.8MiB/s 00:03 [############### ] 84.9%[K guix-packages-base 11.9MiB 4.0MiB/s 00:03 [################# ] 94.8%[K guix-packages-base 11.9MiB 4.0MiB/s 00:03 [##################] 100.0%
#################] 100.0%[K guix-home-modules 265B 98KiB/s 00:00 [##################] 100.0%
#################] 100.0%[K guix-packages-base-modules 270B 94KiB/s 00:00 [##################] 100.0%
[K[K guix-system 3.2MiB/s 00:00 | 64KiB transferred[K guix-system 2.8MiB/s 00:00 | 640KiB transferred[K guix-system 3.9MiB/s 00:00 | 1.7MiB transferred[K guix-system 4.3MiB/s 00:01 | 2.7MiB transferred[K guix-system 4.4MiB/s 00:01 | 3.7MiB transferred[K guix-system 4.5MiB/s 00:01 | 4.7MiB transferred[K guix-system 4.6MiB/s 00:01 | 5.8MiB transferred[K guix-system 4.7MiB/s 00:01 | 6.8MiB transferred[K guix-system 4.7MiB/s 00:01 | 7.0MiB transferred
[K[K guix-system-tests 488KiB/s 00:00 | 64KiB transferred[K guix-system-tests 660KiB/s 00:00 | 256KiB transferred[K guix-system-tests 1018KiB/s 00:01 | 559KiB transferred
#################] 100.0%[K guix-system-modules 264B 98KiB/s 00:00 [##################] 100.0%
#################] 100.0%[K guix-system-tests-modules 270B 89KiB/s 00:00 [##################] 100.0%
[K guix-f3d5d572d-modules 22.8MiB 624KiB/s 00:00 [ ] 1.1%[K guix-f3d5d572d-modules 22.8MiB 944KiB/s 00:01 [ ] 2.5%[K guix-f3d5d572d-modules 22.8MiB 1.5MiB/s 00:01 [ ] 5.5%[K guix-f3d5d572d-modules 22.8MiB 1.8MiB/s 00:01 [# ] 8.5%[K guix-f3d5d572d-modules 22.8MiB 2.1MiB/s 00:01 [## ] 11.5%[K guix-f3d5d572d-modules 22.8MiB 2.4MiB/s 00:01 [## ] 15.4%[K guix-f3d5d572d-modules 22.8MiB 2.5MiB/s 00:02 [### ] 18.7%[K guix-f3d5d572d-modules 22.8MiB 2.6MiB/s 00:02
#################] 100.0%[K guix-f3d5d572d 14KiB 881KiB/s 00:00 [##################] 100.0%
[Kbuilding CA certificate bundle...
[K[Klisting Emacs sub-directories...
[K[Kbuilding fonts directory...
[K[Kbuilding directory of Info manuals...
[K[Kbuilding database for manual pages...
[#########################################################################][K100% [#########################################################################][K100% [#########################################################################][K[Kbuilding profile with 1 package...
[KNew in this revision:
1 new package: binwalk
1 package upgraded: pipe-viewer@0.1.5
#+end_example
#+begin_src sh :results output :session test
guix package -u
#+end_src
#+RESULTS:
#+begin_example
guix package: warning: package 'python-plover-python-dictionary' no longer exists
The following package will be upgraded:
python-language-server (dependencies or package changed)
The following derivation will be built:
/gnu/store/aa1096zp388n4xbxxw8ra7lp7c2pgbkm-profile.drv
[Kapplying 30 grafts for /gnu/store/iw3ndz2qlim3f5a4qh86lm01gfvsgp14-python-language-server-0.36.2.drv ...
[K\[K[Kbuilding CA certificate bundle...
[K[Klisting Emacs sub-directories...
[K[Kbuilding fonts directory...
[K[Kgenerating GLib schema cache...
[K[Kcreating GTK+ icon theme cache...
[K[Kbuilding cache files for GTK+ input methods...
[K[Kbuilding directory of Info manuals...
[K[Kbuilding database for manual pages...
[ ][K 0% [ ][K 0% [ ][K 1% [ ][K 1% [ ][K 1% [ ][K 1% [# ][K 2% [# ][K 2% [# ][K 2% [# ][K 2% [# ][K 3% [# ][K 3% [## ][K 3% [## ][K 3% [## ][K 3% [## ][K 3% [## ][K 4% [## ][K 1% [ ][K 4% [## ][K 4% [## ][K 4% [### ][K 4% [## ][K 4% [### ][K 2% [# ][K 5% [#########################################################################][K100% [#########################################################################][K[Kbuilding XDG desktop file cache...
[K[Kbuilding XDG MIME database...
[K[Kbuilding profile with 89 packages...
#+end_example