dotfiles
bugabingas dorkfiles
owned by bugabinga
Merge branch 'trunk' of github.com:bugabinga/dotfiles into trunk
eab17ecac5835c3e74149fa0e95a2809798dc00b
Oliver Jan Krylow <oliver@bugabinga.net> ·
unsigned
Browse filesCompare with HEAD
Changed files (3)
17 17 use svn-completions.nu *
19 +use svn-completions.nu *
20 22 use refreshenv.nu *
nushell/scripts/commands.nu
Modified 24 + if not (
$file | path exists ) {
26 + msg:
"The file to backup does not exist.",
28 + text:
"Missing its existence!",
29 + span: (metadata
$file).span
33 + let full_path =
$file | path expand
34 + let tmpdir = mktemp --directory --tmpdir backup_XXX
35 + let backup =
$tmpdir | path join (
$file | path basename )
36 + let backup_original_path =
$tmpdir | path join
'original.path' 37 + $full_path | save
$backup_original_path 38 + cp --preserve [ mode timestamps ]
$file $backup 46 + if not (
$backup | path exists ) {
48 + msg:
"The backup file does not exist.",
50 + text:
"Missing its existence!",
51 + span: (metadata
$backup).span
55 + let backup_file =
$backup | path expand
56 + if (
$backup_file !~
'backup_' ) {
58 + msg:
"The file does not seem to be a backup file from `bak`.",
60 + text:
"Are u even bak'ed up?",
61 + span: (metadata
$backup).span
65 + let backup_dir =
$backup | path dirname
66 + let original_path_file =
$backup_dir | path join
'original.path' 67 + let original_path = open --raw
$original_path_file 69 + mv --progress --interactive --verbose
$backup_file $original_path 73 + rm --trash --recursive
$backup_dir wezterm/bugabinga/key_binds.lua
Modified 59 59 {
key =
'v',
action = wez.action.SplitHorizontal {
domain =
'CurrentPaneDomain', }, },
60 60 {
key =
's',
action = wez.action.SplitVertical {
domain =
'CurrentPaneDomain', }, },
62 + {
key =
'r',
action = wez.action.RotatePanes
'CounterClockwise', },
63 + {
key =
'R',
action = wez.action.RotatePanes
'Clockwise', },
62 64 {
key =
'=',
action = wez.action.ActivateKeyTable {
name = resize_pane_mode,
one_shot =
false, }, },
64 66 {
key =
'q',
action = wez.action.CloseCurrentPane {
confirm =
false, }, },