Last active
February 4, 2023 00:55
-
-
Save akamas/5e932ec750fe3e13cacdf2454bcfdfc3 to your computer and use it in GitHub Desktop.
bahsrc alias + short installer
This file contains hidden or 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
| ############ NEW ALIAS ########################### | |
| alias up='apt update && apt full-upgrade -y && apt -y autoremove' | |
| alias os='cat /etc/os-release' | |
| alias aptin='apt -y install' | |
| alias snapin='snap install' | |
| alias brewin='brew install' | |
| alias dock='docker' | |
| alias dops='docker ps' | |
| alias ku='kubectl' | |
| alias kubectl='k3s kubectl' | |
| alias gclone='git clone' | |
| alias glog='git log --oneline --graph' | |
| alias ls='ls -A' | |
| alias shelp='cat https://gist.githubusercontent.com/akamas/5532f21e8fdff4551867057ecd18f7c0/raw/92a1cac19140788785ab4c4ac1606c1f88765f43/shlep' | |
| alias mu='multipass ' | |
| alias muex='multipass exec ' | |
| alias mud='multipass delete ' | |
| alias mul='multipass launch ' | |
| #alias ls='ls -A' | |
| # Ubuntu Server # | |
| alias sbudeskinit='apt update && apt upgrade -y && apt install libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon virt-manager snapd dbus-x11 xrdp net-tools synaptic flatpak nano wget curl git python3 python3-pip python3-yaml python3-dateutil python3-pyqt5 python3-packaging python3-requests cockpit ssh terminator -y && apt autoremove -y && systemctl enable --now libvirtd cockpit.socket && /etc/init.d/xrdp start && echo xfce4-session > ~/.xsession ' | |
| ### qemu - XXL-Full-Install ### | |
| alias sqemuinit='apt -y install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon virt-manager aqemu golang-github-libvirt-libvirt-go-dev grub-firmware-qemu imvirt ipxe-qemu ipxe-qemu-256k-compat-efi-roms libguestfs0 libnss-libvirt libqcow-utils libqcow1 libvirglrenderer1 libvirt-clients libvirt-daemon libvirt-daemon-config-network libvirt-daemon-config-nwfilter libvirt-daemon-driver-lxc libvirt-daemon-driver-qemu libvirt-daemon-driver-storage-gluster libvirt-daemon-driver-storage-iscsi-direct libvirt-daemon-driver-storage-zfs libvirt-daemon-system libvirt-daemon-system-systemd randmac libvirt-dbus libvirt-login-shell libvirt0 oem-qemu-meta proot python3-libqcow python3-libvirt qemu-block-extra qemu-efi qemu-efi-aarch64 qemu-guest-agent qemu-system qemu-system-common qemu-system-data qemu-system-gui qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-x86 qemu-user qemu-user-binfmt qemu-utils qemu-web-desktop qemubuilder sbuild-qemu seabios u-boot-qemu vde2 virt-top xmount xserver-xorg-video-qxl' | |
| ### Multipass Bootstrep ### | |
| # Für DOCKER über MULTIPASS # | |
| alias smuinit='apt -y install qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon virt-manager aqemu golang-github-libvirt-libvirt-go-dev grub-firmware-qemu imvirt ipxe-qemu ipxe-qemu-256k-compat-efi-roms libguestfs0 libnss-libvirt libqcow-utils libqcow1 libvirglrenderer1 libvirt-clients libvirt-daemon libvirt-daemon-config-network libvirt-daemon-config-nwfilter libvirt-daemon-driver-lxc libvirt-daemon-driver-qemu libvirt-daemon-driver-storage-gluster libvirt-daemon-driver-storage-iscsi-direct libvirt-daemon-driver-storage-zfs libvirt-daemon-system libvirt-daemon-system-systemd randmac libvirt-dbus libvirt-login-shell libvirt0 oem-qemu-meta proot python3-libqcow python3-libvirt qemu-block-extra qemu-efi qemu-efi-aarch64 qemu-guest-agent qemu-system qemu-system-common qemu-system-data qemu-system-gui qemu-system-mips qemu-system-misc qemu-system-ppc qemu-system-x86 qemu-user qemu-user-binfmt qemu-utils qemu-web-desktop qemubuilder sbuild-qemu seabios u-boot-qemu vde2 virt-top xmount xserver-xorg-video-qxl xfce4 libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon virt-manager snapd dbus-x11 xrdp net-tools synaptic flatpak nano wget curl git python3 python3-pip python3-yaml python3-dateutil python3-pyqt5 python3-packaging python3-requests cockpit ssh terminator -y && apt autoremove -y && apt install -y snapd git curl nano wget libgl1 libpng16-16 libqt5core5a libqt5gui5 libqt5network5 libqt5widgets5 libxml2 libvirt0 dnsmasq-base dnsmasq-utils qemu-system-x86 qemu-utils libslang2 iproute2 iptables iputils-ping libatm1 libxtables12 xterm && apt update && apt full-upgrade -y && systemctl enable --now libvirtd cockpit.socket && /etc/init.d/xrdp start && echo xfce4-session > ~/.xsession ' | |
| #&& multipass launch docker \ | |
| #&& multipass alias docker:docker' \ | |
| ## Multipass VM Anpassungen ## \ | |
| #$ export $muname='smu01' \ | |
| #&& mul -c 2 -m 4G -d 50G -n $muname 22.04 | |
| #&& muauth ='multipass exec $muname -- bash -c "echo `cat ~/.ssh/id_rsa.pub` >> ~/.ssh/authorized_keys"' | |
| ############ Installer ######################### | |
| ### .bashrc-Update ### | |
| alias bashrcup='cd && rm .bashrc && nano .bashrc' | |
| ### OS-Upgrade ### | |
| # Ubuntu # | |
| alias ubup='do-release-upgrade' | |
| # Debian # | |
| alias debup='apt update && apt-get dist-upgrade -y' | |
| # AppArmor # | |
| alias appinit='apt-get install apparmor -y && apt-get install apparmor-utils -y && sudo apt-get install apparmor-profiles apparmor-profiles-extra -y && sudo service apparmor start ' | |
| ### Oh My Bash ### | |
| alias ombinit='bash -c "$(wget https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh -O -)"' | |
| ### snap + docker + multipass => INIT ### | |
| alias snapdoinit='apt update && apt -y install snapd && snap install core core18 core20 core22 multipass && multipass launch docker && multipass alias docker:docker && PATH="$PATH:/root/snap/multipass/common/bin" && export PATH="$PATH:/root/snap/multipass/common/bin" >> ~/.bashrc' | |
| ### snap ### | |
| alias snapinit='aptin snapd && snap install core core18 core20 core22 multipass' | |
| ### Docker ### | |
| alias doinit='snapin docker && aptin docker-compose && systemctl enable docker && systemctl start docker' | |
| ### Podman ### | |
| alias poinit='aptin podman podman-* && rm /etc/containers/registries.conf && cat > /etc/containers/registries.conf << EOF | |
| [registries.search] | |
| registries = ['docker.io', 'quay.io', 'registry.access.redhat.com'] | |
| [registries.insecure] | |
| registries = [] | |
| [registries.block] | |
| registries = [] | |
| EOF' | |
| ### bauh ### | |
| alias bauhinit='apt install -y snapd flatpak python3 python3-pip python3-yaml python3-dateutil python3-pyqt5 python3-packaging python3-requests timeshift aria2 axel *gtk3 wget sqlite3 fuse3 pacman python-lx* && apt-get install python3-venv && pip3 install bauh' | |
| ### Portainer_ee Docker ### | |
| alias dportinit='docker volume create portainer_data && docker run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ee:latest' | |
| ### Portainer_ee Podman ### | |
| alias pportinit='podman volume create portainer_data && podman run -d -p 8000:8000 -p 9443:9443 --name portainer --restart=always -v /run/podman/podman.sock:/run/podman/podman.sock -v portainer_data:/data portainer/portainer-ee:latest' | |
| ### Rancher Docker ### | |
| alias dranchinit='docker run --privileged -d --restart=unless-stopped -p 80:80 -p 443:443 rancher/rancher' | |
| ### Rancher Podman ### | |
| alias pranchinit='podman run --privileged -d --restart=unless-stopped -p 7780:80 -p 7443:443 rancher/rancher' | |
| ### SRancher Ports iptables ### | |
| alias sportinit='apt install iptables netfilter-persistent -y && iptables -t filter -P INPUT DROP && iptables -t filter -P FORWARD DROP && iptables -t filter -P OUTPUT DROP && iptables -t filter -A OUTPUT -p tcp --dport 80 -j ACCEPT && iptables -t filter -A INPUT -p tcp --dport 80 -j ACCEPT && iptables -t filter -A OUTPUT -p tcp --dport 443 -j ACCEPT && iptables -t filter -A INPUT -p tcp --dport 443 -j ACCEPT && iptables -t filter -A OUTPUT -p tcp --dport 22 -j ACCEPT && iptables -t filter -A INPUT -p tcp --dport 22 -j ACCEPT && iptables -A INPUT -p tcp --dport 6443 -j ACCEPT && iptables -A INPUT -p tcp --dport 10250 -j ACCEPT && iptables -A INPUT -p tcp --dport 2379 -j ACCEPT && iptables -A INPUT -p tcp --dport 2380 -j ACCEPT && iptables -A INPUT -p udp --dport 8472 -j ACCEPT && iptables -A INPUT -p udp --dport 51820 -j ACCEPT && iptables -A INPUT -p udp --dport 51821 -j ACCEPT && iptables-save >/etc/sysconfig/iptables && netfilter-persistent save && netfilter-persistent reload' | |
| alias srancherportinit='apt install iptables netfilter-persistent -y && iptables -A INPUT -p tcp --dport 6443 -j ACCEPT && iptables -A INPUT -p tcp --dport 10250 -j ACCEPT && iptables -A INPUT -p tcp --dport 2379 -j ACCEPT && iptables -A INPUT -p tcp --dport 2380 -j ACCEPT && iptables -A INPUT -p udp --dport 8472 -j ACCEPT && iptables -A INPUT -p udp --dport 51820 -j ACCEPT && iptables -A INPUT -p udp --dport 51821 -j ACCEPT && iptables-save >/etc/sysconfig/iptables && netfilter-persistent save && netfilter-persistent reload' | |
| ### SRancher Join Cluster ### | |
| alias srancherfullinit='curl --insecure -fL https://rancher.188.34.190.224.sslip.io/system-agent-install.sh | sh -s - --server https://rancher.188.34.190.224.sslip.io --label 'cattle.io/os=linux' --token vmg6nwx76tr86gngmk9sfxdv4g48vqxq62h84rp8tld4q28gvn6lpp --ca-checksum f1c723c7302864148a00e4ffc6b79fd6af0622484599b2cf662d2c1113339ae3 --etcd --controlplane --worker' | |
| alias srancheretcdinit='curl --insecure -fL https://rancher.188.34.190.224.sslip.io/system-agent-install.sh | sh -s - --server https://rancher.188.34.190.224.sslip.io --label 'cattle.io/os=linux' --token vmg6nwx76tr86gngmk9sfxdv4g48vqxq62h84rp8tld4q28gvn6lpp --ca-checksum f1c723c7302864148a00e4ffc6b79fd6af0622484599b2cf662d2c1113339ae3 --etcd' | |
| alias sranchercpinit='curl --insecure -fL https://rancher.188.34.190.224.sslip.io/system-agent-install.sh | sh -s - --server https://rancher.188.34.190.224.sslip.io --label 'cattle.io/os=linux' --token vmg6nwx76tr86gngmk9sfxdv4g48vqxq62h84rp8tld4q28gvn6lpp --ca-checksum f1c723c7302864148a00e4ffc6b79fd6af0622484599b2cf662d2c1113339ae3 --controlplane' | |
| alias srancherworkerinit='curl --insecure -fL https://rancher.188.34.190.224.sslip.io/system-agent-install.sh | sh -s - --server https://rancher.188.34.190.224.sslip.io --label 'cattle.io/os=linux' --token vmg6nwx76tr86gngmk9sfxdv4g48vqxq62h84rp8tld4q28gvn6lpp --ca-checksum f1c723c7302864148a00e4ffc6b79fd6af0622484599b2cf662d2c1113339ae3 --worker' | |
| alias sranchercpworkerinit='curl --insecure -fL https://rancher.188.34.190.224.sslip.io/system-agent-install.sh | sh -s - --server https://rancher.188.34.190.224.sslip.io --label 'cattle.io/os=linux' --token vmg6nwx76tr86gngmk9sfxdv4g48vqxq62h84rp8tld4q28gvn6lpp --ca-checksum f1c723c7302864148a00e4ffc6b79fd6af0622484599b2cf662d2c1113339ae3 --controlplane --worker' | |
| ## Install Rancher worker-node ## | |
| alias sranwo='apt install curl netfilter-persistent -y && curl -fsSL https://tailscale.com/install.sh | sh && tailscale up && apt install curl netfilter-persistent -y && iptables -A INPUT -p tcp --dport 6443 -j ACCEPT && iptables -A INPUT -p tcp --dport 10250 -j ACCEPT && iptables -A INPUT -p tcp --dport 2379 -j ACCEPT && iptables -A INPUT -p tcp --dport 2380 -j ACCEPT && iptables -A INPUT -p udp --dport 8472 -j ACCEPT && iptables -A INPUT -p udp --dport 51820 -j ACCEPT && iptables -A INPUT -p udp --dport 51821 -j ACCEPT && netfilter-persistent save && netfilter-persistent reload && curl --insecure -fL https://rancher.188.34.190.224.sslip.io/system-agent-install.sh | sh -s - --server https://rancher.188.34.190.224.sslip.io --label 'cattle.io/os=linux' --token d6fzm4bszpqzn6zhh6pgmdhp9q4r5nxlpdfvhx9xbrlqfk78gvxh9m --ca-checksum f1c723c7302864148a00e4ffc6b79fd6af0622484599b2cf662d2c1113339ae3 --worker' | |
| ### HARVESTER Installer ### | |
| alias havinit='aptin curl nano make git && snapinit && snapin go --classic && doinit && git clone https://github.com/harvester/harvester-installer.git && cd harvester-installer && sudo make' | |
| ### k3s uninstall ### | |
| alias k3sun='/usr/local/bin/k3s-uninstall.sh' | |
| alias k3sunagent='/usr/local/bin/k3s-agent-uninstall.sh' | |
| ### HomeBrew + User ### | |
| alias sbrew='adduser sbrew && adduser sbrew && adduser sbrew sudo && su sbrew' | |
| alias sbrewinit='/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" && brew install bash-syntax-highlighting bash-autosuggestions bash-completions' | |
| ### cockpit ### | |
| alias cockinit='apt -y install qemu-kvm cockpit cockpit-packagekit cockpit-networkmanager cockpit-machines && systemctl enable --now libvirtd cockpit.socket \ | |
| && wget https://launchpad.net/ubuntu/+source/cockpit/215-1~ubuntu19.10.1/+build/18889196/+files/cockpit-docker_215-1~ubuntu19.10.1_all.deb && apt install ./cockpit-docker_215-1~ubuntu19.10.1_all.deb -y && apt install cockpit-podman cockpit-389-ds -y && curl -LO https://github.com/45Drives/cockpit-file-sharing/releases/download/v3.2.0/cockpit-file-sharing_3.2.0-1focal_all.deb && apt install ./cockpit-file-sharing_3.2.0-1focal_all.deb -y && curl -LO https://github.com/45Drives/cockpit-identities/releases/download/v0.1.10/cockpit-identities_0.1.10-1focal_all.deb && apt install ./cockpit-identities_0.1.10-1focal_all.deb -y && wget https://github.com/45Drives/cockpit-navigator/releases/download/v0.5.8/cockpit-navigator_0.5.8-1focal_all.deb && apt install ./cockpit-navigator_0.5.8-1focal_all.deb -y' | |
| ### Desktop on Top ### | |
| alias sdeskinit='apt install ubuntu-budgie-desktop -y' | |
| alias sdeskout='apt autoremove --purge ubuntu-budgie-desktop -y' | |
| ### RDP DeskTop ### | |
| # DEBIAN # | |
| alias sdebdeskinit='apt update && apt upgrade -y && apt install -y *budgie* mate-desktop-environment mate-notification-daemon dbus-x11 xrdp net-tools synaptic qemu-kvm libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon virt-manager snapd flatpak nano wget curl git python3 python3-pip python3-yaml python3-dateutil python3-pyqt5 python3-packaging python3-requests ssh terminator && apt autoremove -y && /etc/init.d/xrdp start && echo xfce4-session > ~/.xsession' | |
| # Ubuntu # | |
| alias sbudeskinit='apt update && apt upgrade -y && apt install *budgie* libvirt-clients libvirt-daemon-system bridge-utils virtinst libvirt-daemon virt-manager snapd mate-desktop-environment mate-notification-daemon xfce4 dbus-x11 xrdp net-tools synaptic docker.io docker-compose flatpak nano wget curl git python3 python3-pip python3-yaml python3-dateutil python3-pyqt5 python3-packaging python3-requests cockpit ssh terminator snapd -y && apt autoremove -y && systemctl enable --now libvirtd cockpit.socket && /etc/init.d/xrdp start && echo xfce4-session > ~/.xsession ' | |
| ############ NEW ################################# | |
| # eval "$(/home/sbrew/.linuxbrew/bin/brew shellenv)" | |
| # ~/.bashrc: executed by bash(1) for non-login shells. | |
| # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) | |
| # for examples | |
| # If not running interactively, don't do anything | |
| [ -z "$PS1" ] && return | |
| # don't put duplicate lines in the history. See bash(1) for more options | |
| # ... or force ignoredups and ignorespace | |
| HISTCONTROL=ignoredups:ignorespace | |
| # append to the history file, don't overwrite it | |
| shopt -s histappend | |
| # for setting history length see HISTSIZE and HISTFILESIZE in bash(1) | |
| HISTSIZE=1000 | |
| HISTFILESIZE=2000 | |
| # check the window size after each command and, if necessary, | |
| # update the values of LINES and COLUMNS. | |
| shopt -s checkwinsize | |
| # make less more friendly for non-text input files, see lesspipe(1) | |
| [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" | |
| # set variable identifying the chroot you work in (used in the prompt below) | |
| if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then | |
| debian_chroot=$(cat /etc/debian_chroot) | |
| fi | |
| # set a fancy prompt (non-color, unless we know we "want" color) | |
| case "$TERM" in | |
| xterm-color) color_prompt=yes;; | |
| esac | |
| # uncomment for a colored prompt, if the terminal has the capability; turned | |
| # off by default to not distract the user: the focus in a terminal window | |
| # should be on the output of commands, not on the prompt | |
| #force_color_prompt=yes | |
| if [ -n "$force_color_prompt" ]; then | |
| if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then | |
| # We have color support; assume it's compliant with Ecma-48 | |
| # (ISO/IEC-6429). (Lack of such support is extremely rare, and such | |
| # a case would tend to support setf rather than setaf.) | |
| color_prompt=yes | |
| else | |
| color_prompt= | |
| fi | |
| fi | |
| if [ "$color_prompt" = yes ]; then | |
| PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
| else | |
| PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' | |
| fi | |
| unset color_prompt force_color_prompt | |
| # If this is an xterm set the title to user@host:dir | |
| case "$TERM" in | |
| xterm*|rxvt*) | |
| PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1" | |
| ;; | |
| *) | |
| ;; | |
| esac | |
| # enable color support of ls and also add handy aliases | |
| if [ -x /usr/bin/dircolors ]; then | |
| test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" | |
| alias ls='ls --color=auto' | |
| #alias dir='dir --color=auto' | |
| #alias vdir='vdir --color=auto' | |
| alias grep='grep --color=auto' | |
| alias fgrep='fgrep --color=auto' | |
| alias egrep='egrep --color=auto' | |
| fi | |
| # some more ls aliases | |
| alias ll='ls -alF' | |
| alias la='ls -A' | |
| alias l='ls -CF' | |
| # Alias definitions. | |
| # You may want to put all your additions into a separate file like | |
| # ~/.bash_aliases, instead of adding them here directly. | |
| # See /usr/share/doc/bash-doc/examples in the bash-doc package. | |
| if [ -f ~/.bash_aliases ]; then | |
| . ~/.bash_aliases | |
| fi | |
| # enable programmable completion features (you don't need to enable | |
| # this, if it's already enabled in /etc/bash.bashrc and /etc/profile | |
| # sources /etc/bash.bashrc). | |
| #if [ -f /etc/bash_completion ] && ! shopt -oq posix; then | |
| # . /etc/bash_completion | |
| #fi | |
| ##################################################### | |
| ## Oh My Bash ## | |
| # Enable the subsequent settings only in interactive sessions | |
| case $- in | |
| *i*) ;; | |
| *) return;; | |
| esac | |
| # Path to your oh-my-bash installation. | |
| export OSH=/root/.oh-my-bash | |
| # Set name of the theme to load. Optionally, if you set this to "random" | |
| # it'll load a random theme each time that oh-my-bash is loaded. | |
| OSH_THEME="font" | |
| # 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 change how often to auto-update (in days). | |
| # export UPDATE_OSH_DAYS=13 | |
| # 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. | |
| # The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
| HIST_STAMPS="dd.mm.yyyy" | |
| # Uncomment the following line if you do not want OMB to overwrite the existing | |
| # aliases by the default OMB aliases defined in lib/*.sh | |
| # OMB_DEFAULT_ALIASES="check" | |
| # Would you like to use another custom folder than $OSH/custom? | |
| # OSH_CUSTOM=/path/to/new-custom-folder | |
| # To disable the uses of "sudo" by oh-my-bash, please set "false" to | |
| # this variable. The default behavior for the empty value is "true". | |
| OMB_USE_SUDO=true | |
| # Which completions would you like to load? (completions can be found in ~/.oh-my-bash/completions/*) | |
| # Custom completions may be added to ~/.oh-my-bash/custom/completions/ | |
| # Example format: completions=(ssh git bundler gem pip pip3) | |
| # Add wisely, as too many completions slow down shell startup. | |
| completions=( | |
| git | |
| composer | |
| ssh | |
| ) | |
| # Which aliases would you like to load? (aliases can be found in ~/.oh-my-bash/aliases/*) | |
| # Custom aliases may be added to ~/.oh-my-bash/custom/aliases/ | |
| # Example format: aliases=(vagrant composer git-avh) | |
| # Add wisely, as too many aliases slow down shell startup. | |
| aliases=( | |
| general | |
| ) | |
| # Which plugins would you like to load? (plugins can be found in ~/.oh-my-bash/plugins/*) | |
| # Custom plugins may be added to ~/.oh-my-bash/custom/plugins/ | |
| # Example format: plugins=(rails git textmate ruby lighthouse) | |
| # Add wisely, as too many plugins slow down shell startup. | |
| plugins=( | |
| git | |
| bashmarks | |
| ) | |
| # Which plugins would you like to conditionally load? (plugins can be found in ~/.oh-my-bash/plugins/*) | |
| # Custom plugins may be added to ~/.oh-my-bash/custom/plugins/ | |
| # Example format: | |
| # if [ "$DISPLAY" ] || [ "$SSH" ]; then | |
| # plugins+=(tmux-autoattach) | |
| # fi | |
| source "$OSH"/oh-my-bash.sh | |
| # User configuration | |
| # export MANPATH="/usr/local/man:$MANPATH" | |
| # You may need to manually set your language environment | |
| export LANG=de_DE.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" | |
| # ssh | |
| # export SSH_KEY_PATH="~/.ssh/rsa_id" | |
| # Set personal aliases, overriding those provided by oh-my-bash libs, | |
| # plugins, and themes. Aliases can be placed here, though oh-my-bash | |
| # users are encouraged to define aliases within the OSH_CUSTOM folder. | |
| # For a full list of active aliases, run `alias`. | |
| # | |
| # Example aliases | |
| alias bashconfig="~/.bashrc" | |
| alias ohmybash="~/.oh-my-bash" | |
| ##################################################### | |
| if [ $TILIX_ID ] || [ $VTE_VERSION ] ; then source /etc/profile.d/vte.sh; fi # Ubuntu Budgie END | |
| apt update && apt upgrade -y && apt -y autoremove && clear | |
| # DIRENV (tooling) | |
| eval "$(direnv hook bash)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment