Skip to content

Instantly share code, notes, and snippets.

@Bersam
Last active October 12, 2019 15:17
Show Gist options
  • Save Bersam/0ca9cfd961425918690537760d8e98f8 to your computer and use it in GitHub Desktop.
Save Bersam/0ca9cfd961425918690537760d8e98f8 to your computer and use it in GitHub Desktop.
Ultimate Linux Setup
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/home/bersam/.oh-my-zsh"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="ys"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to automatically update without prompting.
# DISABLE_UPDATE_PROMPT="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS=true
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(archlinux autojump common-aliases docker gpg-agent git git-extras \
npm pass pip python pylint pyenv ssh-agent sudo systemd tmux \
zsh-syntax-highlighting zsh-history-substring-search zsh-completions \
zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
#
# zsh-completions related
autoload -U compinit && compinit
pacman -S wget tmux ntfs-3g unzip openssh
pacman -S plasma-meta kde-application-meta
pacman -S emacs vim
pacman -S npm yarn
# Aria2
pacman -S aria2
mkdir ~/.aria2
curl -fsSL https://raw.githubusercontent.com/Bersam/dotfiles/master/aria2/aria2.conf -o ~/.aria2/aria2.conf
# Git
pacman -S git
yay -S gitflow-avh
git config --global user.name "your name"
git config --global user.email "[email protected]"
# Oh My ZSH
pacman -S zsh autojump
curl -fsSL https://gist.githubusercontent.com/Bersam/0ca9cfd961425918690537760d8e98f8/raw/0e5c5f32cfc7795d397b8bef5f8c67c936ff98c8/.zshrc -o ~/.zshrc
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# Persian Font
sh -c "$(curl -fsSL https://raw.githubusercontent.com/fzerorubigd/persian-fonts-linux/master/farsifonts.sh)"
# Yay
pacman -S go
mkdir /tmp/yay
git clone https://aur.archlinux.org/yay.git /tmp/yay
cd /tmp/yay
makepkg
sudo pacman -U yay-*-x86_64.pkg.tar.xz
# SDDM Theme
yay -S solarized-sddm-theme ttf-google-fonts-git
mkdir /etc/sddm.conf.d
sudo sh -c 'echo "[Theme]
Current=solarized-sddm-theme" >> /etc/sddm.conf.d/theme.conf'
# Spacemacs
npm install -g tern
pacman -S pandoc
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
# Openvpn
pacman -S openvpn
# Tor
pacman -S tor
yay -S obfs4proxy
sudo sh -c 'echo "UseBridges 1
ClientTransportPlugin obfs4 exec /usr/bin/obfs4proxy managed
Bridge obfs4 1.1.1.1:42501 9F548604BD5AB011F13301D843F83E1A8DA57A0D cert=I5iJp4egNJbz+20QsW02sgSBC6giNQhsbGtLATeAgzwSWdJfxvXbAY+hhWlBqmpuo+plKQ iat-mode=0
" >> /etc/tor/torrc'
# Tomb and Ledger
pacman -S ledger
yay -S tomb
pacman -S steganography
# Code
pacman -S code
code --install-extension ms-python.python --install-extension ms-azuretools.vscode-docker --install-extension eamodio.gitlens --install-extension dbaeumer.vscode-eslint --install-extension msjsdiag.debugger-for-chrome --install-extension vscode-icons-team.vscode-icons --install-extension esbenp.prettier-vscode --install-extension christian-kohler.path-intellisense --install-extension eg2.vscode-npm-script --install-extension coenraads.bracket-pair-colorizer --install-extension christian-kohler.npm-intellisense
# Extra applicatoin
pacman -S htop whois mtr
pacman -S firefox chromium
pacmna -S telegram-desktop
pacman -S guake
pacman -S vlc
pacman -S meld
pacman -S ufw
# Fixes
# Fonts
# Check out this gist https://gist.github.com/cryzed/e002e7057435f02cc7894b9e748c5671
# Slow startup Time
# https://bbs.archlinux.org/viewtopic.php?id=249106
sudo pacman -S haveged
sudo systemctl start haveged
sudo systemctl enable haveged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment