Skip to content

Commit

Permalink
update install method
Browse files Browse the repository at this point in the history
  • Loading branch information
randName committed Jul 15, 2023
1 parent 2943938 commit 68f5c77
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 38 deletions.
22 changes: 9 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,18 @@ Configuration files for `zsh`, `tmux`, `vim` and many other things
very loosely based on [The Text Triumvirate](https://web.archive.org/web/20200414221857/https://www.drbunsen.org/the-text-triumvirate/)

## Installing
1) Install `zsh`, `tmux` and `vim`
```shell

```sh
# install `zsh`, `tmux` and `vim`
sudo apt purge vim-tiny*
sudo apt install zsh tmux vim
```
2) Install [oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh/)
```shell

# install oh-my-zsh (https://github.com/robbyrussell/oh-my-zsh/)
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
```
3) Install `.dotfiles`
```shell
git clone --recursive https://github.com/randName/dotfiles .dotfiles
cd .dotfiles && tools/install.sh
```

### Terminal Settings (Fonts, Colours)
The `vim` statusbar uses [Powerline fonts](https://github.com/powerline/fonts)
# install .dotfiles
git clone --depth 1 --recursive https://github.com/randName/dotfiles .dotfiles
.dotfiles/tools/install.sh
```

refer to [the wiki](https://github.com/randName/dotfiles/wiki) for more setup instructions
3 changes: 1 addition & 2 deletions gitconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[user]
name = Shun Git
email = [email protected]
signingkey = 2A8E70EDA1631F2B
email = [email protected]
[github]
user = randname
[alias]
Expand Down
1 change: 1 addition & 0 deletions gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
tags
.tags
.nvmrc
node_modules/

surge.sh

Expand Down
5 changes: 1 addition & 4 deletions tools/install.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#!/bin/sh

# Symlink to default locations
for fn in $(cat tools/locations); do
for fn in $(cat $(dirname $0)/locations); do
[ -z "$fn" ] && continue
ln -vs --backup=existing $PWD/$fn $HOME/.$fn
done

# Generate .less
lesskey lesskey
7 changes: 0 additions & 7 deletions tools/install_osx.sh

This file was deleted.

1 change: 1 addition & 0 deletions tools/locations
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
zshenv
zshrc
vimrc
lesskey
tmux.conf

gitconfig
Expand Down
14 changes: 2 additions & 12 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,7 @@ source $ZSH/oh-my-zsh.sh
autoload -U promptinit; promptinit
prompt pure

# machine-local configuration
[ -f $HOME/.zshlocal ] && source $HOME/.zshlocal

# User configuration
export LANG='en_SG.utf8'

export TZ='Asia/Singapore'

bindkey -v
Expand All @@ -35,10 +30,5 @@ bindkey -r '^L'

setopt AUTO_CD

# stuff that needs to be near the end

if [ -d $HOME/.pyenv ]; then
export PATH=$HOME/.pyenv/bin:$PATH
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
fi
# machine-local configuration
[ -f $HOME/.zshlocal ] && source $HOME/.zshlocal

0 comments on commit 68f5c77

Please sign in to comment.