Created
May 16, 2020 15:57
-
-
Save cinemast/ba08bc31056dd4429fe679b3a12bc036 to your computer and use it in GitHub Desktop.
home.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# curl blabla bash | |
set -euxo pipefail | |
PACKAGES="fish tmux git tig fzf" | |
if [ -f "/etc/arch-release" ]; then | |
sudo pacman -Sy $PACKAGES | |
else | |
export DEBIAN_FRONTEND=noninteractive | |
sudo apt-get install -y $PACKAGES | |
fi | |
mkdir -p ~/.ssh | |
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC8vFZMlKc3QyGnEQ6kOHgtopQnDvIFWyL14afgMMPHHTtVhGuiNeKCeMkimx2cK0I75kNLjmxZq1YmBgsDkclfXbOWCYKuOULWZV0Hkdwmu6bH4EVNUGc24gdmh3qCwaPASqJPapGF0QaZbMP5oRxkcQ5Qexb25eesY0q0HJJUgYbVGGdvJmvf55menA8OJFYZTu54rtYXPcV4CM2cuiU++i9MhPnKtZXo/lpMiwFekXF7+A9cRwlahJI0jZTCtVcU6i/2TdJzIN4MCUEOHnq1ccnRQ6e1cobk5nZSowz+vk+QdbGb9eMXYuxxOxWQ/BO2qJB42wb5cg5CqEVpg7SNgypP8vKPtEEJhjiSvXoiur1UAOhsihE6Cv4K+ifTVfLNO8JlmiLFi8zKk0q/E1ZzOxUb+UMBi8Lt+/vIYI7mraYC+4Y0+FFF66CMFGLXtKDjX0qvoKlUn1bV38Xgg4eupa2YkLyyHYkpC7I8VjUi5adiErQtWU3HnkXXSX2dLe9LNE5juqmP1Jwq7znmjI9nAGBBg0XacoMr09e1YXk/umEraboxVf8JEXZoLc6r1/qPqHdo/vEEd9iiQzpaye0Y2y5c4aQaiCwnSY808sXBxo82ryu7c7ZF0CHK89+BG5oKaw+PbqS707pu5ETloOLxJzaaRPD23DW/ItW2vHgBCQ== cinemast@rabe" >> ~/.ssh/authorized_keys | |
cat << EOF > ~/.tmux.conf | |
# Split panes | |
bind | split-window -h | |
bind - split-window -v | |
# Pane switching | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D | |
# Easy config reload | |
bind r source-file ~/.tmux.conf | |
# Enable mouse mode | |
set -g mouse on | |
# History | |
set -g history-limit 1000 | |
bind -n WheelUpPane copy-mode | |
setw -g mode-keys vi | |
# Status line | |
set -g status-left-length 40 # status line | |
set -g status-left "#(echo $USER)@#H #{session_name}/#{window_index}/#{pane_index}" | |
set -g status-right "%d/%m/%Y %R:%S" | |
set -g status-interval 5 | |
set -g status-justify centre | |
EOF | |
cat << EOF > ~/.config/fish/config.fish | |
fzf_key_bindings | |
set -x EDITOR /usr/local/bin/micro | |
EOF | |
#Install micro | |
curl https://getmic.ro | bash && sudo mv micro /usr/local/bin/micro | |
chsh -s $(which fish) | |
tmux new -s cinemast |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment