Skip to content

Commit

Permalink
macOS & linux bootstrap (#21)
Browse files Browse the repository at this point in the history
* bootstrap for macOS (and maybe linux)
* gitconfig is solely driven from gitconfig.ini, removing OS specific git configs
* install apps via pkg mgr for macOS and linux
* have() function to detect if exe is on path
* setup shell environment, incl. fish
* fixes for bootstrap.sh env
  - correctly copy fish functions
  - config.fish tolerates missing zoxide, starship apps
  - bat theming more readable; added config file
  - enable git clone in clone step (not rigorously tested yet)
  - WIP: linux (debian/ubuntu) bootstrap not reliable yet, apt/snap vary largely between versions; some app packages missing or hopeless outdated.
* win bootstrap: don't delete nvim-data if treesitter installed (too slow to recompile)
* remove now-obsolete files
  • Loading branch information
davidjenni authored Jan 20, 2024
1 parent 5632086 commit a4aa561
Show file tree
Hide file tree
Showing 21 changed files with 375 additions and 3,168 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ vimfiles/.netrwhist
# secrets files
.secrets
.ssh/

# fisherman plugins
/fish/functions/__*
31 changes: 8 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
# dot files


DotFiles for my macOS, Win32 & Linux environments. Geared towards use of git and vim.

## Bootstrap

### Windows 10/11

to bootstrap, run this in a PowerShell prompt:
to bootstrap, run this in a Windows PowerShell prompt:

````shell
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
Expand All @@ -16,33 +15,19 @@ irm 'https://raw.githubusercontent.com/davidjenni/dotfiles/main/bootstrap.ps1' |

### macOS

* install [Git](http://git-scm.com/download/mac)
* open terminal:
to bootstrap, run this in a default Terminal.app prompt:

````shell
curl -L -o /tmp/bootstrap.sh https://github.com/davidjenni/dotfiles/raw/master/bootstrap.sh
bash /tmp/bootstrap.sh
curl -fsSL https://github.com/davidjenni/dotfiles/raw/master/bootstrap.sh | bash
````

### Linux (Debian)

* install curl and git (while at it, also get vim and hg):
### Linux (Ubuntu/Debian)

````shell
sudo apt-get install curl git vim mercurial
````
NOTE: WIP, bootstrap doesn't work reliably in Debian(bookworm) nor Ubuntu 22 yet,
still missing apps!

* open terminal:
* open terminal/WSL:

````shell
curl -L -o /tmp/bootstrap.sh https://github.com/davidjenni/dotfiles/raw/master/bootstrap.sh
bash /tmp/bootstrap.sh
curl -fsSL https://github.com/davidjenni/dotfiles/raw/master/bootstrap.sh | bash
````

Status
------

Still work in progress:
* cleanup and orgianize vimrc
* better refactoring of bash rc

20 changes: 20 additions & 0 deletions bash/bash_aliases
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
alias cls='clear'
alias la='ls -AGF'
alias ls='ls -GF'
alias ll='ls -lGF'

alias l='less'
export LESS="-c -i -x4 -J -w -M -r"
export VISUAL='nvim'
alias v='nvim'
alias vv='nvim'

alias ff='fd'
#alias '-'='popd'
alias ..='cd ../'
alias ...='cd ../../'

# vi mode; can be switched on temp with: set -o vi
set editing-mode vi

myip() { wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'; }
202 changes: 0 additions & 202 deletions bash/bashrc

This file was deleted.

Loading

0 comments on commit a4aa561

Please sign in to comment.