mirror of
https://github.com/jbowdre/dotfiles.git
synced 2024-12-25 13:42:18 +00:00
fish: get-local-ip function
This commit is contained in:
parent
ea9864cfa3
commit
e984ddfcf7
1 changed files with 2 additions and 0 deletions
|
@ -67,6 +67,8 @@
|
|||
|
||||
echo -n -s (prompt_login)' ' (set_color $color_cwd) (prompt_pwd) $normal (fish_vcs_prompt) $normal " "$nix_shell_info $prompt_status $suffix " "
|
||||
'';
|
||||
get-local-ip = "ip addr show $(ip route | grep default | awk '{print $5}') | grep 'inet ' | awk '{print $2}' | cut -d/ -f1";
|
||||
|
||||
ssh = "TERM=xterm command ssh $argv";
|
||||
# Rebuild home-manager
|
||||
switch-home = "home-manager switch -b backup --flake ${config.home.homeDirectory}/.dotfiles#$USER@$(hostname -s)";
|
||||
|
|
Loading…
Reference in a new issue