diff options
Diffstat (limited to 'nushell/config.nu')
| -rw-r--r-- | nushell/config.nu | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/nushell/config.nu b/nushell/config.nu index 8bdf6c7..b1b96af 100644 --- a/nushell/config.nu +++ b/nushell/config.nu @@ -23,6 +23,25 @@ alias nuconf = config nu alias nuenv = config env alias ssh = ghostty +ssh +# --- Network proxy ---- + +$env.no_proxy = 'localhost,127.0.0.1' + +def pon [] { + $env.http_proxy = 'http://127.0.0.1:7890' + $env.https_proxy = 'http://127.0.0.1:7890' + $env.all_proxy = 'socks5://127.0.0.1:7890' +} + +def poff [] { + $env.http_proxy = '' + $env.https_proxy = '' + $env.all_proxy = '' +} + +## default on +pon + # ---- Custom commands ---- # Remind to use mosh instead of ssh @@ -65,6 +84,10 @@ def gitvis [] { git log --oneline --graph --all --decorate } +def git-reauthor [] { + git commit --amend --reset-author --no-edit +} + # check what apps are not managed by homebrew def brewoutcasts [] { let apps = (ls /Applications | where type == dir and name ends-with '.app') |
