hammerspoon tilin', rvm fixin'
This commit is contained in:
parent
1285e535bc
commit
57577be6d5
5 changed files with 24 additions and 1 deletions
|
|
@ -1,3 +1,5 @@
|
||||||
if [ -L ~/.bashrc ] || [ -f ~/.bashrc ]; then
|
if [ -L ~/.bashrc ] || [ -f ~/.bashrc ]; then
|
||||||
source ~/.bashrc;
|
source ~/.bashrc;
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
|
||||||
|
|
|
||||||
|
|
@ -102,3 +102,5 @@ prompt_func() {
|
||||||
PS1=$PS1"> "
|
PS1=$PS1"> "
|
||||||
}
|
}
|
||||||
PROMPT_COMMAND=prompt_func
|
PROMPT_COMMAND=prompt_func
|
||||||
|
|
||||||
|
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
|
||||||
|
|
|
||||||
1
mac-files/.hammerspoon/hs/tiling
Submodule
1
mac-files/.hammerspoon/hs/tiling
Submodule
|
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 7609ad7802e24e453088aecf984126f6d5d6a593
|
||||||
|
|
@ -1,11 +1,27 @@
|
||||||
--------------------------------------------
|
-----------------------------------------------
|
||||||
-- Set up
|
-- Set up
|
||||||
-----------------------------------------------
|
-----------------------------------------------
|
||||||
|
|
||||||
|
local tiling = require "hs.tiling"
|
||||||
|
local hotkey = require "hs.hotkey"
|
||||||
local hyper = {"shift", "cmd", "alt", "ctrl"}
|
local hyper = {"shift", "cmd", "alt", "ctrl"}
|
||||||
|
local mash = {"ctrl", "cmd"}
|
||||||
|
|
||||||
hs.window.animationDuration = 0
|
hs.window.animationDuration = 0
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------
|
||||||
|
-- auto-tile commands
|
||||||
|
-----------------------------------------------
|
||||||
|
|
||||||
|
hotkey.bind(mash, "j", function() tiling.cycle(1) end)
|
||||||
|
hotkey.bind(mash, "k", function() tiling.cycle(-1) end)
|
||||||
|
hotkey.bind(mash, "space", function() tiling.promote() end)
|
||||||
|
hotkey.bind(mash, "f", function() tiling.goToLayout("fullscreen") end)
|
||||||
|
hotkey.bind(mash, "f", function() tiling.goToLayout("fullscreen") end)
|
||||||
|
hotkey.bind(mash, "r", function() tiling.goToLayout("main-vertical") end)
|
||||||
|
hotkey.bind(mash, "c", function() tiling.goToLayout("columns") end)
|
||||||
|
|
||||||
-----------------------------------------------
|
-----------------------------------------------
|
||||||
-- hyper d for left one half window
|
-- hyper d for left one half window
|
||||||
-----------------------------------------------
|
-----------------------------------------------
|
||||||
|
|
|
||||||
|
|
@ -36,3 +36,5 @@ eval "$(direnv hook zsh)"
|
||||||
|
|
||||||
# load RVM if it exists
|
# load RVM if it exists
|
||||||
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
|
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
|
||||||
|
|
||||||
|
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue