Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # - - - - - - - - - - - - - - - - - - - - - - - - - #
- # > .bash_profile #
- # - - - - - - - - - - - - - - - - - - - - - - - - - #
- HISTCONTROL=ignoreboth
- # This excludes anything with a space before it from
- # your .bash_history
- alias example =" ssh myuser@example.com"
- alias some_other =" ssh myuser@someotherserver.com"
- # aliases for your ssh connections for example
- function triggerBunny() {
- osascript <<EOD
- tell application "Terminal"
- set newTab to do script "$@"
- end tell
- EOD
- }
- # Call AppleScript to open a new Terminal window/tab
- # and run the alias piped into it via the variable.
- # "triggerBunny example" would run the "example" alias
- # in a new Terminal window/tab.
- ✁ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- # - - - - - - - - - - - - - - - - - - - - - - - - - #
- # > .inputrc #
- # - - - - - - - - - - - - - - - - - - - - - - - - - #
- # F9 to run the triggerBunny function with the alias
- # "example" appended as a flag
- "\e[20~": " triggerBunny example \C-m"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement