This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
require 'fileutils' | |
home = -> { Dir.chdir(Dir.home) } | |
downloads = -> { Dir.chdir('Downloads') } | |
home.call | |
downloads.call |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "fileutils" | |
class CleanDesktop | |
EXTENSIONS = %w(.png .jpg .jpeg) | |
attr_reader :directory_name | |
def initialize(directory_name) | |
@directory_name = directory_name | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Setup a work space called `work` with four windows | |
session="work" | |
# set up tmux | |
tmux start-server | |
# create a new tmux session with <NAME> |