Skip to content

Instantly share code, notes, and snippets.

@malyzeli
Last active December 30, 2022 01:23
Show Gist options
  • Save malyzeli/aa26332194491c2dfa67fe259dc7972e to your computer and use it in GitHub Desktop.
Save malyzeli/aa26332194491c2dfa67fe259dc7972e to your computer and use it in GitHub Desktop.
Xubuntu setup scripts
apt purge firefox \
gnome-mines \
gnome-sudoku \
libreoffice-calc \
libreoffice-common \
libreoffice-math \
libreoffice-writer \
mate-calc \
mousepad \
orage \
parole \
pidgin \
ristretto \
sgt-puzzles \
thunderbird
apt --purge autoremove
apt dist-upgrade
apt install audacious \
baobab \
cinnamon \
curl \
deepin-screenshot \
filezilla \
gddccontrol \
gedit \
git \
gnome-calculator \
gnome-disk-utility \
gnome-system-monitor \
gparted \
gthumb \
htop \
i2c-tools \
kdocker \
mc \
meld \
paprefs \
psensor \
rar \
remmina \
simplescreenrecorder \
vim \
zsh
snap install audacity
snap install caprine
snap install firefox
snap install gimp
snap install intellij-idea-ultimate --classic
snap install node --classic
snap install onlyoffice-desktopeditors
snap install opera
snap install postman
snap install scrcpy
snap install slack --classic
snap install spotify
snap install telegram-desktop
snap install vlc
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
add-apt-repository ppa:papirus/papirus
apt install papirus-icon-theme
add-apt-repository ppa:nextcloud-devs/client
apt install nextcloud-client
echo "Google Chrome needs to be installed manually"
# colors: red, green, yellow, blue, magenta, cyan
local user="%{$fg[magenta]%}%n%{$reset_color%}"
local host="%{$fg[yellow]%}%m%{$reset_color%}"
function workdir {
echo "%{$fg_bold[cyan]%}${PWD/#$HOME/~}%{$reset_color%}"
}
function char {
git branch >/dev/null 2>/dev/null && echo '⚒' && return
hg root >/dev/null 2>/dev/null && echo '☿' && return
echo '➜'
}
function prompt {
echo "%(?:%{$fg_bold[green]%}$(char) :%{$fg_bold[red]%}$(char) %s)%{$reset_color%}"
}
#PROMPT='${user} at ${host} in $(workdir) $(prompt) %{$reset_color%}'
PROMPT='${host} in $(workdir) $(prompt) $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})%{$reset_color%}"
ZSH_THEME="malyzeli"
plugins=(
docker
docker-compose
git
yarn
)
alias dps="docker ps -a --format \"table {{.Names}}\t{{.Status}}\t{{.Ports}}\""
alias dpi="docker ps -a --format \"table {{.Names}}\t{{.ID}}\t{{.Image}}\""
alias dstat="docker stats --no-stream --format \"table {{.Name}}\t{{.CPUPerc}}\t{{.MemPerc}}\t{{.MemUsage}}\""
alias lsport="lsof -i -P -n"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment