-
Notifications
You must be signed in to change notification settings - Fork 1
/
debian.sh
56 lines (43 loc) · 1.64 KB
/
debian.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#!/bin/bash
# This file is used to setup Fish
set -e # Exit on error
# Remove password for EC2 instance
sudo passwd $USER -d
# Add Fish PPA and install Fish
sudo add-apt-repository ppa:fish-shell/release-3
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install fish
# Make Fish the default shell
chsh -s $(which fish)
# Install OMF
curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install > install
fish -c " fish install --path=~/.local/share/omf --config=~/.config/omf --noninteractive --yes"
# Install OMF themes
fish -c "omf install neolambda"
# Install Fisher
fish -c "curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher"
# Install Fisher extensions
fish -c "fisher install jorgebucaran/nvm.fish"
fish -c "fisher install jorgebucaran/replay.fish"
fish -c "fisher install franciscolourenco/done"
fish -c "fisher install gazorby/fish-abbreviation-tips"
fish -c "fisher install acomagu/fish-async-prompt"
fish -c "fisher install joseluisq/[email protected]"
fish -c "fisher install meaningful-ooo/sponge"
# Set aliases
fish -c 'alias dog "code"; funcsave dog;'
fish -c 'alias dawg "code-insiders"; funcsave dawg;'
fish -c 'alias lss "ls -a -h"; funcsave lss;'
fish -c 'alias rmf "rm -r -f"; funcsave rmf;'
# Configure launch options
printf "if status is-interactive
# Commands to run in interactive sessions can go here
fastfetch
export TERM=screen-256color
end\n" >> ~/.config/fish/config.fish
# Install Fastfetch
sudo add-apt-repository ppa:simonschneegans/testing
sudo apt-get update
sudo apt-get install fastfetch
echo "Fish installation complete! Restart your terminal to start using Fish."