Skip to content

Commit d663d4c

Browse files
committed
Fish time 🐟
1 parent f787651 commit d663d4c

34 files changed

+116
-948
lines changed

β€Ž.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010
[submodule "zsh-syntax-highlighting"]
1111
path = zsh-syntax-highlighting
1212
url = https://github.com/zsh-users/zsh-syntax-highlighting
13+
[submodule "vim/bundle/Vundle.vim"]
14+
path = vim/bundle/Vundle.vim
15+
url = https://github.com/VundleVim/Vundle.vim.git

β€ŽREADME.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Dylan's config files
2-
This is a repository that has most of my normal setup. I made sure that most of it doesn't require root privelages to install.
3-
The script will install Powerline, `oh-my-zsh`, my custom Powerline modules, a few vim plugins, and more.
4-
The file `install.sh` should remove any existing conflicting configuration and replace it with this one. It should work on any Debian, Raspbian, Ubuntu, or Arch Linux system.
2+
3+
This repository kind of, sort of contains my normal configs. There's a bunch of stuff missing, but this does cover the gist of it.
4+
5+
6+
Take a look at install.sh for an idea of what packages you'll need to install and what symlinks to make, but don't expect it to actually work if you try to run it.

β€Žaliases

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
#!/bin/zsh
2+
#
3+
# These are old aliases for zsh, and aren't used anymore -
4+
# fish aliases go in their own folder.
25
alias emacs='emacs -nw'
36
alias intl='setxkbmap us intl'
47
alias us='setxkbmap us'
58
alias nmap='nmap -n'
69
alias tjvpn='sudo openvpn ~/openvpn/tj.ovpn'
710
alias vpn='sudo openvpn ~/openvpn/laptop-tun.ovpn'
811

9-
pacs() { pacman -Fo /usr/bin/$1 }
12+
pacs() { pacman -F /usr/bin/$1 }
1013

1114
alias rel='exec zsh'
1215

β€Žfish/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fish_variables

β€Žfish/functions/ga.fish

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
alias ga="git add"

β€Žfish/functions/gc.fish

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
alias gc="git commit -v"

β€Žfish/functions/gd.fish

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
alias gd="git diff"

β€Žfish/functions/gl.fish

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
alias gl="git pull"

β€Žfish/functions/glog.fish

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
alias glog="git log --oneline --decorate --graph"

β€Žfish/functions/gp.fish

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
alias gp="git push"

β€Žfish/functions/ls.fish

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Copied from the default ls alias
2+
function ls --description 'List contents of directory'
3+
command ls --color=auto $argv
4+
end

β€Ži3/config

+8-3
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ floating_modifier $mod
3636
# start a terminal
3737
#bindsym $mod+Return exec i3-sensible-terminal
3838
# LXterm has support for the powerline fonts, also it kinda looks better
39-
bindsym $mod+Return exec lxterminal
39+
# however, I'm going to go back to i3-sensible-terminal because that has
40+
# support on Ubuntu for launching gnome-terminal instead.
41+
bindsym $mod+Return exec i3-sensible-terminal
4042

4143
# kill focused window
4244
bindsym $mod+Shift+q kill
@@ -197,8 +199,8 @@ hide_edge_borders both
197199

198200
# Set desktop background
199201
#exec_always feh --bg-fill /home/dylan/Wallpapers/LunarEclipse.jpg
200-
# Random arch bg
201-
exec_always feh --bg-fill $(zsh -c 'export a=(~/Wallpapers/arch_quotes/*); echo $a[$((($RANDOM % ${#a}) + 1))]')
202+
# Random bg
203+
exec_always feh --bg-fill $(zsh -c 'export a=(/usr/share/backgrounds/*{png,jpg}); echo $a[$((($RANDOM % ${#a}) + 1))]')
202204

203205
# Make certian windows always float
204206
for_window [title="Python jumping game"] floating enable
@@ -213,3 +215,6 @@ bindsym $mod+t exec zsh ~/bin/togglemouse
213215
# facilities for locking the screen
214216
bindsym $mod+l exec xautolock -locknow
215217
exec xautolock -locker ~/bin/lock -time 5
218+
219+
# C O M P T O N
220+
exec compton

β€Žinstall.sh

+22-21
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,57 @@
1-
#!/bin/zsh
1+
#!/bin/bash
22

3-
# even though the shebang *says* zsh, make sure its actually using zsh
4-
if [ -z "$ZSH_VERSION" ]; then
5-
echo "Doesn't look like you're using zsh..."
6-
echo "Please install zsh and then re-run this script using zsh"
7-
exit 1
8-
fi
3+
echo "TODO: actually make the fish symlinks :/"
4+
# also: set -U EDITOR vim
5+
# set -U ????
6+
# uhh, maybe just like, copy the uvars or somethihng?
7+
exit
98

109
INSTALL_PATH="$(realpath $(dirname $0))"
1110
USER="$(whoami)"
1211

1312
# do the config symlinks
14-
TO_INSTALL=(bin tmux.conf i3 powerline_config zshrc vim oh-my-zsh zsh-syntax-highlighting powerline-daemon.service aliases Xmodmaprc)
15-
TO_PATHS=(~/bin ~/.tmux.conf ~/.i3 ~/.config/powerline ~/.zshrc ~/.vim ~/.oh-my-zsh ~/.zsh-syntax-highlighting ~/.config/systemd/user/powerline-daemon.service ~/.aliases ~/.Xmodmaprc)
13+
TO_INSTALL=(bin tmux.conf i3 powerline_config vim powerline-daemon.service)
14+
TO_PATHS=(~/bin ~/.tmux.conf ~/.i3 ~/.config/powerline ~/.vim ~/.config/systemd/user/powerline-daemon.service)
1615

17-
for i in {1..${#TO_INSTALL}}; do
16+
for i in $(seq 1 ${#TO_INSTALL[@]}); do
1817
if [ -f "${TO_PATHS[i]}" ] || [ -d "${TO_PATHS[i]}" ]; then
1918
if [ -f "$INSTALL_PATH/overwrite" ]; then
20-
rm "${TO_PATHS[i]}"
19+
echo rm "${TO_PATHS[i]}"
2120
else
22-
rm -ri "${TO_PATHS[i]}"
21+
echo rm -ri "${TO_PATHS[i]}"
2322
fi
2423
fi
2524
if ! [ -f "${TO_PATHS[i]}" ]; then
26-
mkdir -p "$(dirname ${TO_PATHS[i]})"
27-
ln -sfT "$INSTALL_PATH/${TO_INSTALL[i]}" "${TO_PATHS[i]}"
25+
echo mkdir -p "$(dirname ${TO_PATHS[i]})"
26+
echo ln -sfT "$INSTALL_PATH/${TO_INSTALL[i]}" "${TO_PATHS[i]}"
2827
fi
2928
done
3029

30+
exit 1
31+
3132
# clone any sub-repos that need to be cloned
3233
cd "$INSTALL_PATH"
3334
git submodule update --init --recursive
3435

3536
# install distro-specific packages
3637
# check for sudo access first
3738
if sudo -l >/dev/null; then
38-
# RELEASE_STR="$(tr '[:upper:]' '[:lower:]' < /etc/issue)"
3939
. /etc/os-release # only works w/ systemd
4040

4141
case "$ID" in
4242
*debian*|*ubuntu*|*raspbian* )
4343
# do apt stuff
44-
sudo apt install -y python3 python3-pip python3-dev build-essential zsh cmake tmux vim
44+
sudo apt install -y python3 python3-pip python3-dev build-essential cmake tmux vim fish
4545
;;
4646
*arch* )
4747
# do arch stuff
48-
sudo pacman -S --noconfirm --needed python-pip base-devel zsh git cmake tmux vim
48+
sudo pacman -S --noconfirm --needed python-pip base-devel git cmake tmux vim fish
4949
;;
5050
*centos* )
5151
# do centos stuff
52+
echo -e '\n*** Just a fair warning, this centos support is uuber janky ***\n'
5253
sudo yum -y install epel-release
53-
sudo yum -y install python36-pip git zsh vim tmux
54+
sudo yum -y install python36-pip git vim tmux fish
5455
sudo yum -y groupinstall "Development Tools"
5556
sudo pip3.6 install --upgrade pip # this fixes pip3 to point to pip3.6
5657
sudo sh -c 'echo "export PATH=/usr/local/bin:$PATH >> /etc/profile"' # make root be able to use pip3
@@ -68,16 +69,16 @@ fi
6869

6970

7071
# install pip packages
71-
pip3 install --user thefuck powerline-status
72+
pip3 install --user powerline-status i3-py
7273

7374
# Create the python symlink to be compatible with old pythons
7475
PY_VER="$(python3 -c "from sys import version_info as vi; print('python'+str(vi[0])+'.'+str(vi[1]))")"
7576
mkdir -p ~/.local/lib
7677
ln -s ~/.local/lib/$PY_VER ~/.local/lib/python3
7778

78-
# change shell to zsh
79+
# change shell to fish
7980
echo "Changing default shell - enter password"
80-
chsh -s '/bin/zsh'
81+
chsh -s '/bin/fish'
8182

8283
# install and enable powerline-daemon systemd service
8384
systemctl --user daemon-reload

β€Žoh-my-zsh

Submodule oh-my-zsh deleted from 6c1dab2

β€Žvim/.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
swap/*
2+
backup/*

β€Žvim/autoload/pathogen.vim

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function! pathogen#surround(path) abort
118118
let rtp = pathogen#split(&rtp)
119119
let path = fnamemodify(a:path, ':s?[\\/]\=$??')
120120
let before = filter(pathogen#expand(path), '!pathogen#is_disabled(v:val)')
121-
let after = filter(reverse(pathogen#expand(path, sep.'after')), '!pathogen#is_disabled(v:val[0:-7])')
121+
let after = filter(reverse(pathogen#expand(path, sep.'after')), '!pathogen#is_disabled(v:val[0 : -7])')
122122
call filter(rtp, 'index(before + after, v:val) == -1')
123123
let &rtp = pathogen#join(before, rtp, after)
124124
return &rtp
@@ -136,7 +136,7 @@ function! pathogen#interpose(name) abort
136136
let list = []
137137
for dir in pathogen#split(&rtp)
138138
if dir =~# '\<after$'
139-
let list += reverse(filter(pathogen#expand(dir[0:-6].name, sep.'after'), '!pathogen#is_disabled(v:val[0:-7])')) + [dir]
139+
let list += reverse(filter(pathogen#expand(dir[0 : -6].name, sep.'after'), '!pathogen#is_disabled(v:val[0 : -7])')) + [dir]
140140
else
141141
let list += [dir] + filter(pathogen#expand(dir.sep.name), '!pathogen#is_disabled(v:val)')
142142
endif

β€Žvim/bundle/Vundle.vim

Submodule Vundle.vim added at b255382

β€Žvim/bundle/auto-pairs

Submodule auto-pairs deleted from f0019fc

β€Žvim/bundle/typescript-vim/README.md

-126
This file was deleted.

β€Žvim/bundle/typescript-vim/compiler/typescript.vim

-30
This file was deleted.

β€Žvim/bundle/typescript-vim/ftdetect/typescript.vim

-4
This file was deleted.

β€Žvim/bundle/typescript-vim/ftplugin/typescript.vim

-21
This file was deleted.

0 commit comments

Comments
Β (0)