feat(console): add yc

This commit is contained in:
Pavel Korytov 2022-08-03 14:45:30 +03:00
parent 973be91ef9
commit fbe878c312
2 changed files with 20 additions and 0 deletions

10
.bashrc
View file

@ -150,3 +150,13 @@ if [[ -z "$SIMPLE" && "$TERM" != "dumb" ]]; then
eval "$(starship init bash)"
fi
# Starship:1 ends here
# [[file:Console.org::*Yandex Cloud][Yandex Cloud:1]]
init_yc () {
# The next line updates PATH for Yandex Cloud CLI.
if [ -f '/home/pavel/yandex-cloud/path.bash.inc' ]; then source '/home/pavel/yandex-cloud/path.bash.inc'; fi
# The next line enables shell command completion for yc.
if [ -f '/home/pavel/yandex-cloud/completion.bash.inc' ]; then source '/home/pavel/yandex-cloud/completion.bash.inc'; fi
}
# Yandex Cloud:1 ends here

View file

@ -404,6 +404,16 @@ if [[ -z "$SIMPLE" && "$TERM" != "dumb" ]]; then
eval "$(starship init bash)"
fi
#+end_src
*** Yandex Cloud
#+begin_src bash
init_yc () {
# The next line updates PATH for Yandex Cloud CLI.
if [ -f '/home/pavel/yandex-cloud/path.bash.inc' ]; then source '/home/pavel/yandex-cloud/path.bash.inc'; fi
# The next line enables shell command completion for yc.
if [ -f '/home/pavel/yandex-cloud/completion.bash.inc' ]; then source '/home/pavel/yandex-cloud/completion.bash.inc'; fi
}
#+end_src
* Fish
:PROPERTIES:
:header-args+: :tangle ./.config/fish/config.fish :comments link