From 6525757c2aff704550ca46991ca1d11e09f11f01 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Tue, 6 Sep 2022 09:13:21 +0200 Subject: Added ssh help to set vi bindings without modifying remote bashrc --- config/nvim/lua/mappings.lua | 1 - config/zsh/aliases.zsh | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/nvim/lua/mappings.lua b/config/nvim/lua/mappings.lua index 5373a4e..9b1f638 100644 --- a/config/nvim/lua/mappings.lua +++ b/config/nvim/lua/mappings.lua @@ -10,7 +10,6 @@ map('n', 'ss', 'setlocal spell!', {}) -- toggle spelling check map('n', ']', '', {}) -- toggle spelling check map('n', 't', '', {}) -- toggle spelling check - -- split navigation map('n', '', '', {}) map('n', '', '', {}) diff --git a/config/zsh/aliases.zsh b/config/zsh/aliases.zsh index 3a5d0af..54c9f99 100644 --- a/config/zsh/aliases.zsh +++ b/config/zsh/aliases.zsh @@ -172,3 +172,7 @@ sdcv() { } alias ffmpeg='ffmpeg -hide_banner' + +sshvi() { + ssh -t "$1" bash -o vi -i +} -- cgit From 0eb15e0d59f6e416a9923871e4a75af56232efaf Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Tue, 6 Sep 2022 09:15:36 +0200 Subject: Updated zshrc ros setup to work when ros is not install --- config/zsh/.zshrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'config') diff --git a/config/zsh/.zshrc b/config/zsh/.zshrc index dbaaa90..a1211cd 100644 --- a/config/zsh/.zshrc +++ b/config/zsh/.zshrc @@ -107,7 +107,9 @@ export YSU_MESSAGE_POSITION="after" # you-should if [ "$(uname)" = 'Linux' ] then . /usr/share/doc/pkgfile/command-not-found.zsh + if [ -d /opt/ros2/galactic ] + then + export ROS_DOMAIN_ID=42 + . /opt/ros2/galactic/setup.zsh + fi fi - -export ROS_DOMAIN_ID=42 -. /opt/ros2/galactic/setup.zsh -- cgit