# Linux specific aliases
if [[ "$os" = "$linux_str" ]]; then
    alias ls='ls --color=auto'
    alias dir='dir --color=auto'

    # Pacman aliases
    alias pacman=run_pacman

    # ssh aliases
    alias usshfs='fusermount -u $HOME/Remote'
    
    # set monitor brighness
    alias sb=set_brightness
    alias sbr=set_brightness_rel
    # get current brightness
    alias gb=get_brightness

    alias no=notify
elif [[ "$os" = "$osx_str" ]]; then
    alias ls='ls -G'
    # ssh aliases
    alias usshfs='umount $HOME/Remote'
fi

alias gcssh='gcloud compute ssh'

# Some useful tmux alias
alias t='tmux new-session -s' # Create new session, should pass name
alias ta='tmux a -t' # Attach to a session
alias tn='tmux new-session -t' # Attach to a session, independent control
alias tl='tmux ls'
alias tk='tmux kill-session -t'

alias nv=nvim

alias grep='grep --color=always'

# Protect me from myself
alias rm='echo "No."; false'

# trash-cli
alias tm=trash-put

# man aliases
alias man=run_man

# Compression aliases
alias tarx='tar -xvf'
alias targz='tar -zxvf'
alias tarbz2= 'tar -jxvf'

# Aliases for stack managed executables
alias sghc='stack ghc'
alias srunghc='stack runghc'

# Linux specific aliases
if [[ "$os" = "$linux_str" ]]; then
    alias ls='ls --color=auto'
    alias dir='dir --color=auto'

    # Pacman aliases
    alias pacman=run_pacman

    # ssh aliases
    alias usshfs='fusermount -u $HOME/Remote'
    
    # set monitor brighness
    alias sb=set_brightness
    alias sbr=set_brightness_rel
    # get current brightness
    alias gb=get_brightness

    alias no=notify
elif [[ "$os" = "$osx_str" ]]; then
    alias ls='ls -G'
    # ssh aliases
    alias usshfs='umount $HOME/Remote'
fi

alias gcssh='TERM=xterm-256color gcloud compute ssh'

# Some useful tmux alias
alias t='tmux new-session -s' # Create new session, should pass name
alias ta='tmux a -t' # Attach to a session
alias tn='tmux new-session -t' # Attach to a session, independent control
alias tl='tmux ls'
alias tk='tmux kill-session -t'

alias nv=nvim

alias grep='grep --color=always'

# Protect me from myself
alias rm='echo "No."; false'

# trash-cli
alias tm=trash-put

# man aliases
alias man=run_man

# Compression aliases
alias tarx='tar -xvf'
alias targz='tar -zxvf'
alias tarbz2= 'tar -jxvf'

# Aliases for stack managed executables
alias sghc='stack ghc'
alias srunghc='stack runghc'

Set TERM when using gcloud compute ssh
Set TERM when using gcloud compute ssh
