Skip to content

Commit

Permalink
something about this spacing really makes the ipconfig line fail.
Browse files Browse the repository at this point in the history
I guess I just never noticed it about vim. Ah - the Rocky Linux server
at work had an actual `/usr/bin/vim`
  • Loading branch information
jakebman committed Jan 16, 2025
1 parent 1015a29 commit a725407
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/available/jake-ssh.plugin.bash
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,14 @@ function _ssh_remote_bashrc() {
grep --color=always "$@" |
less --RAW-CONTROL-CHARS +G
}
if !type vim &>/dev/null; then
if ! type vim &>/dev/null; then
function vim {
vi "$@"
}
fi
# there's no ipconfig on Rocky Linux - it's `ip address`, but can be abbreviated, per the man page:
# "The names of all objects may be written in full or abbreviated form, for example address can be abbreviated as addr or just a."
if !type ipconfig &>/dev/null && type ip &>/dev/null; then
if ! type ipconfig &>/dev/null && type ip &>/dev/null; then
function ipconfig {
ip addr
}
Expand Down

0 comments on commit a725407

Please sign in to comment.