mirror of
https://github.com/SqrtMinusOne/dotfiles.git
synced 2025-12-10 19:23:03 +03:00
feat(console): add yc
This commit is contained in:
parent
973be91ef9
commit
fbe878c312
2 changed files with 20 additions and 0 deletions
10
.bashrc
10
.bashrc
|
|
@ -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
|
||||
|
|
|
|||
10
Console.org
10
Console.org
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue