dotfiles
This commit is contained in:
parent
864b049205
commit
2a3d6bb9da
2 changed files with 18 additions and 2 deletions
14
.config/wezterm/wezterm.lua
Normal file
14
.config/wezterm/wezterm.lua
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
|
||||||
|
local wezterm = require 'wezterm';
|
||||||
|
|
||||||
|
return {
|
||||||
|
font = wezterm.font("FiraCode Nerd Font"),
|
||||||
|
window_padding = {
|
||||||
|
left = 0,
|
||||||
|
right = 0,
|
||||||
|
top = 0,
|
||||||
|
bottom = 0,
|
||||||
|
},
|
||||||
|
hide_tab_bar_if_only_one_tab = true,
|
||||||
|
|
||||||
|
}
|
|
@ -1,7 +1,5 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
link [path] -> move to dotfiles, git add and symlink back
|
link [path] -> move to dotfiles, git add and symlink back
|
||||||
unlink [path] -> move from dotfiles and git rm
|
unlink [path] -> move from dotfiles and git rm
|
||||||
|
@ -20,6 +18,10 @@ basedir = os.path.expanduser("~/.dotfiles")
|
||||||
def getpaths(path):
|
def getpaths(path):
|
||||||
absolutpath = os.path.abspath(os.path.expanduser(path))
|
absolutpath = os.path.abspath(os.path.expanduser(path))
|
||||||
dotfilepath = basedir + absolutpath[len(os.path.expanduser("~")):]
|
dotfilepath = basedir + absolutpath[len(os.path.expanduser("~")):]
|
||||||
|
|
||||||
|
if absolutpath.startswith(basedir):
|
||||||
|
dotfilepath = absolutpath
|
||||||
|
absolutpath = os.path.expanduser("~" + absolutpath[len(basedir):])
|
||||||
|
|
||||||
return absolutpath, dotfilepath
|
return absolutpath, dotfilepath
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue