Skip to content

Instantly share code, notes, and snippets.

View ToyFarms's full-sized avatar

shafarrahman ToyFarms

View GitHub Profile
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)
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/Aloxaf/fzf-tab ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/fzf-tab
git clone https://github.com/joshskidmore/zsh-fzf-history-search ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-fzf-history-search
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-completions.git ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions
git clone https://github.com/jeffreytse/zsh-vi-mode $ZSH_CUSTOM/plugins/zsh-vi-mode
map ctrl+c copy_and_clear_or_interrupt
map ctrl+v paste_from_clipboard
map ctrl+] show_last_command_output
map ctrl+shift+t new_tab_with_cwd
enable_audio_bell no
shell_integration enabled
map f1 scroll_to_prompt 1
map f2 scroll_to_prompt -1
scrollback_lines -1
unbind C-b
set-option -g prefix C-s
bind-key C-s send-prefix
bind l select-pane -L
bind h select-pane -R
bind k select-pane -U
bind j select-pane -D
bind C-l select-pane -L
bind C-h select-pane -R
DISABLE_AUTO_UPDATE=true
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(zsh-syntax-highlighting fzf-tab zsh-fzf-history-search zsh-autosuggestions zsh-completions zsh-vi-mode)
function zvm_config() {
ZVM_VI_INSERT_ESCAPE_BINDKEY=jk
}
function zvm_after_init() {
#!/bin/bash
attempt_logout() {
echo "Attempting to log out using: $1"
eval "$1" && exit 0
}
if [[ "$XDG_SESSION_DESKTOP" || "$DESKTOP_SESSION" ]]; then
case "$XDG_SESSION_DESKTOP" in
gnome|ubuntu)
#!/bin/bash
if [ $XDG_SESSION_TYPE = "x11" ]; then
wlr-randr --output HDMI-A-1 --mode 1920x1080@50
sleep 1
wlr-randr --output HDMI-A-1 --mode 1920x1080@60
else
if kscreen-doctor -o | grep -q "HDMI-A-1"; then
kscreen-doctor output.HDMI-A-1.mode.1920x1080@50
sleep 1