Render that which belongs to caesar unto caesar
This commit is contained in:
parent
30216371da
commit
14932b6656
2 changed files with 12 additions and 5 deletions
12
install.sh
12
install.sh
|
|
@ -1,4 +1,16 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# This is my dotfiles setup script. It is invoked by coder.com instances.
|
||||
# We have this shared part of the setup, in setup.py, so let's run that first.
|
||||
MY_PATH=$(dirname "$0")
|
||||
cd $MY_PATH
|
||||
|
||||
python3 "./setup.py"
|
||||
|
||||
# OK this stuff here is better in bash, and also is specific to setting up
|
||||
# coder.com instances, so.
|
||||
sudo add-apt-repository ppa:kelleyk/emacs -y
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y fish emacs27-nox tmux
|
||||
|
||||
sudo chsh -s /usr/bin/fish $USER
|
||||
|
|
|
|||
5
setup.py
5
setup.py
|
|
@ -105,8 +105,3 @@ if os.getenv("LOCALAPPDATA") is not None:
|
|||
)
|
||||
|
||||
# Check to set the shell to fish, if we need to
|
||||
if os.getenv("CODER_WORKSPACE_ID"):
|
||||
subprocess.run(["sudo", "add-apt-repository", "ppa:kelleyk/emacs", "-y"])
|
||||
subprocess.run(["sudo", "apt-get", "update"])
|
||||
subprocess.run(["sudo", "apt-get", "install", "-y", "fish", "emacs27-nox", "tmux"])
|
||||
subprocess.run(["sudo", "chsh", "-s", "/usr/bin/fish", os.getenv("USER")])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue