This commit is contained in:
talksik
2023-11-17 23:02:36 -08:00
parent 6404b9bca4
commit 20ec1cc281
3 changed files with 33 additions and 11 deletions
+19 -1
View File
@@ -22,6 +22,24 @@ if [ -f '/home/talksik/Downloads/google-cloud-sdk/path.bash.inc' ]; then . '/hom
if [ -f '/home/talksik/Downloads/google-cloud-sdk/completion.bash.inc' ]; then . '/home/talksik/Downloads/google-cloud-sdk/completion.bash.inc'; fi
# chatgpt
alias s=tgpt
alias s='tgpt'
[ -f ~/.inshellisense/key-bindings.bash ] && source ~/.inshellisense/key-bindings.bash
shopt nocaseglob # ignore case when matching
shopt cdspell # fix common spelling mistakes
shopt -s autocd # for bash
take () {
mkdir -p "$1" && cd "$1"
}
lfcd() {
dir=$(lf -print-last-dir "$@")
while ! cd "$dir" 2> /dev/null
do
dir=$(dirname "$dir")
done
}
export NB_EDITOR=nvim
+2 -2
View File
@@ -130,8 +130,8 @@ module-margin-right = 0
; font-3 = FontAwesome:size=10
; See the Fonts wiki page for more details
font-0 = "Fantasque Sans Mono:pixelsize=15;3"
font-1 = "Iosevka Nerd Font:pixelsize=20;4"
font-0 = "HasklugNerdFont:pixelsize=15;3"
font-1 = "HasklugNerdFont:pixelsize=20;4"
; Modules are added to one of the available blocks
; modules-left = cpu ram
+12 -8
View File
@@ -1,6 +1,6 @@
## Clone
```
```bash
cd ~
git init
git remote add origin [my-repo]
@@ -9,8 +9,12 @@ git checkout origin/master -ft
```
## Dependencies
```
```bash
$ sudo apt install net-tools
$ sudo apt install fzf picom feh xclip
$ sudo apt install polybar
# for i3 install, make sure you get version > 4.22 for gaps to work
```
## Nix
@@ -18,12 +22,12 @@ $ sudo apt install fzf picom feh xclip
2. `nix-shell` from $HOME to launch shell based on `shell.nix`
## nvim setup
1. run `nix-shell` from $HOME. The `shell.nix` in this repo should have neovim, ripgrep, and packer as dependencies.
2. open nvim anywhere. `nvim .`
3. run `:PackerSync`
- if this doesn't work, try this to get nvim to load packer: `git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim`
4. `:q` and then again `nvim .`
```bash
# get neovim from whereever but make sure that its a newer version
$ sudo snap install neovim --classic
$ git clone --depth 1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim`
$
```
#### Details
All plugin related remaps are in their respective files.