mirror of
https://github.com/osmarks/random-stuff
synced 2026-09-18 01:21:20 +00:00
dot new files
This commit is contained in:
+28
-6
@@ -4,10 +4,32 @@ if status is-interactive
|
||||
end
|
||||
if status is-login
|
||||
and status is-interactive
|
||||
# To add a key, set -Ua SSH_KEYS_TO_AUTOLOAD keypath
|
||||
# To remove a key, set -U --erase SSH_KEYS_TO_AUTOLOAD[index_of_key]
|
||||
# keychain --eval $SSH_KEYS_TO_AUTOLOAD 2> /dev/null | source
|
||||
# disabled for performance reasons
|
||||
#keychain --eval $SSH_KEYS_TO_AUTOLOAD 2> /dev/null | source
|
||||
end
|
||||
|
||||
function __project_jail_chpwd --on-variable PWD
|
||||
if set -q NORECURSE
|
||||
set -e NORECURSE
|
||||
return
|
||||
end
|
||||
if set -q IN_PROJECT_JAIL
|
||||
return
|
||||
end
|
||||
|
||||
if test -x ~/.local/bin/project-jail
|
||||
if ~/.local/bin/project-jail
|
||||
set -l back "$dirprev[1]"
|
||||
test -n "$back"; or set back "$HOME"
|
||||
set -g NORECURSE
|
||||
cd "$back"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# Also check once at shell startup.
|
||||
if not set -q IN_PROJECT_JAIL
|
||||
if test -x ~/.local/bin/project-jail
|
||||
~/.local/bin/project-jail
|
||||
end
|
||||
end
|
||||
#if status is-interactive
|
||||
#
|
||||
#end
|
||||
|
||||
Reference in New Issue
Block a user