Skip to content

Execute commands after authentication #533

Closed Answered by IsmaelMartinez
IsmaelMartinez asked this question in Ideas
Discussion options

You must be logged in to vote

putting my own implementation in here:

I have added this to my ~/.zshrc file

function postLoginActions {
    # put here your postLoginActions
}
 
function lap {
    { # try
        echo "Checking for current session"
        leapp session current
    } || { # catch
        echo "No session found. Starting a new one"
        leapp session start
    }
    postLoginActions
}

And I just execute lap (instead of leapp)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by IsmaelMartinez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant