Compare commits
3 Commits
38c1cf22e6
...
24ac06f925
Author | SHA1 | Date | |
---|---|---|---|
24ac06f925 | |||
89eacee8c4 | |||
85c3b5e36b |
@ -1,8 +1,9 @@
|
||||
set -x DOTFILES $HOME/dotfiles
|
||||
|
||||
if test -z "$FISH_SETUP_PATH"
|
||||
set -x PATH $HOME/dotfiles/bin $PATH
|
||||
set -x PATH . $PATH
|
||||
set -xp PATH $HOME/.pyenv/bin
|
||||
set -xp PATH $HOME/dotfiles/bin
|
||||
set -xp PATH .
|
||||
|
||||
set -x FISH_SETUP_PATH
|
||||
end
|
||||
@ -11,4 +12,9 @@ set -x LANG sv_SE.UTF-8
|
||||
set -x LC_ALL sv_SE.UTF-8
|
||||
set -x EDITOR nvim
|
||||
|
||||
alias v vim
|
||||
alias v nvim
|
||||
|
||||
if type -q pyenv
|
||||
pyenv init --path | source
|
||||
end
|
||||
# pyenv virtualenv-init - | source
|
35
install.sh
35
install.sh
@ -1,19 +1,19 @@
|
||||
#!/bin/bash
|
||||
|
||||
function install_dependencies() {
|
||||
sudo -n apt-get update
|
||||
sudo -n DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
|
||||
fish \
|
||||
neovim
|
||||
}
|
||||
|
||||
USER=`whoami`
|
||||
sudo -n chsh $USER -s $(which fish)
|
||||
echo "exec $(which fish) -l" >> ~/.profile
|
||||
echo "exec $(which fish) -l" >> ~/.bashrc
|
||||
echo "exec $(which fish) -l" >> ~/.zshrc
|
||||
|
||||
echo "sv_SE.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen
|
||||
sudo locale-gen
|
||||
function setup_ssh() {
|
||||
mkdir -p ~/.ssh
|
||||
touch ~/.ssh/config
|
||||
chmod 644 ~/.ssh/config
|
||||
}
|
||||
|
||||
function setup_git() {
|
||||
cat << EOF > ~/.gitconfig
|
||||
[include]
|
||||
path = ${HOME}/dotfiles/git/gitconfig
|
||||
@ -22,7 +22,7 @@ cat << EOF > ~/.gitconfig
|
||||
EOF
|
||||
|
||||
mkdir -p ~/.ssh
|
||||
cat << EOF > ~/.ssh/config
|
||||
cat << EOF >> ~/.ssh/config
|
||||
Host github.com
|
||||
User git
|
||||
Host gitea
|
||||
@ -30,8 +30,25 @@ Host gitea
|
||||
User git
|
||||
EOF
|
||||
chmod 644 ~/.ssh/config
|
||||
}
|
||||
|
||||
USER=`whoami`
|
||||
|
||||
install_dependencies
|
||||
|
||||
sudo -n chsh $USER -s $(which fish)
|
||||
echo "exec $(which fish) -l" >> ~/.profile
|
||||
echo "exec $(which fish) -l" >> ~/.bashrc
|
||||
echo "exec $(which fish) -l" >> ~/.zshrc
|
||||
|
||||
echo "sv_SE.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen
|
||||
sudo locale-gen
|
||||
|
||||
setup_ssh
|
||||
setup_git
|
||||
|
||||
mkdir -p ~/.config/
|
||||
ln -s ~/dotfiles/fish ~/.config/fish
|
||||
mkdir -p ~/.config/nvim/
|
||||
ln -s ~/dotfiles/init.vim ~/.config/nvim/init.vim
|
||||
|
||||
|
41
tmux/tmux.conf
Normal file
41
tmux/tmux.conf
Normal file
@ -0,0 +1,41 @@
|
||||
setw -g mode-keys vi
|
||||
|
||||
set -g default-terminal tmux-256color
|
||||
|
||||
set-option -g base-index 1
|
||||
|
||||
set-option -g prefix C-a
|
||||
unbind C-b
|
||||
bind a send-prefix
|
||||
bind-key C-a last-window
|
||||
|
||||
unbind %
|
||||
bind-key | split-window -h -c "#{pane_current_path}"
|
||||
bind-key - split-window -v -c "#{pane_current_path}"
|
||||
bind-key / split-window -h -c "#{pane_current_path}"
|
||||
|
||||
bind-key c neww -c "#{pane_current_path}"
|
||||
|
||||
bind-key h select-pane -L
|
||||
bind-key j select-pane -D
|
||||
bind-key k select-pane -U
|
||||
bind-key l select-pane -R
|
||||
|
||||
bind-key k confirm-before -p "Kill window #w? (y/n)" kill-window
|
||||
|
||||
set -g mouse on
|
||||
|
||||
unbind Space
|
||||
bind-key Space next-window
|
||||
|
||||
set -sg escape-time 50
|
||||
|
||||
|
||||
set -g status-justify centre
|
||||
set -g status-bg colour16
|
||||
set -g status-left-length 100
|
||||
set -g status-fg colour12
|
||||
set -g status-left '#[fg=green]#(hostname -s)#[fg=colour12]:#[fg=colour12]#S '
|
||||
set -g window-status-format '#[fg=colour12]#I:#W '
|
||||
set -g window-status-current-format '#[fg=red]#I:#W#[fg=green]#F #[fg=colour12]'
|
||||
|
Loading…
x
Reference in New Issue
Block a user