Skip to content

Instantly share code, notes, and snippets.

@johnny-aroza
Last active October 14, 2019 12:32
Show Gist options
  • Select an option

  • Save johnny-aroza/fc02497c2a0b3ed377a251fa529e0dee to your computer and use it in GitHub Desktop.

Select an option

Save johnny-aroza/fc02497c2a0b3ed377a251fa529e0dee to your computer and use it in GitHub Desktop.
config fish

file name - config.fish

path : ~/.config/fish/config.fish


set PATH $PATH $HOME/.composer/vendor/bin

set -g theme_display_git yes
set -g theme_display_git_dirty no
set -g theme_display_git_untracked no
set -g theme_display_git_ahead_verbose yes
set -g theme_display_git_dirty_verbose yes
set -g theme_display_git_master_branch yes
set -g theme_git_worktree_support yes
set -g theme_display_vagrant yes
set -g theme_display_docker_machine no
set -g theme_display_k8s_context yes
set -g theme_display_hg yes
set -g theme_display_virtualenv no
set -g theme_display_ruby no
set -g theme_display_user ssh
set -g theme_display_hostname ssh
set -g theme_display_vi no
set -g theme_display_date no
set -g theme_display_cmd_duration yes
set -g theme_title_display_process yes
set -g theme_title_display_path no
set -g theme_title_display_user yes
set -g theme_title_use_abbreviated_path no
set -g theme_date_format "+%a %H:%M"
set -g theme_avoid_ambiguous_glyphs yes
set -g theme_powerline_fonts no
set -g theme_nerd_fonts yes
set -g theme_show_exit_status yes
set -g default_user your_normal_user
set -g theme_color_scheme dark
set -g fish_prompt_pwd_dir_length 0
set -g theme_project_dir_length 1
set -g theme_newline_cursor no

# git shortcut

alias gs="git status"
alias gl="git log"
alias ga="git add "
alias gb="git branch"

# CLI shortcut

alias lsa="ls -la"
alias msql="mysql -u root -p"
alias md="mkdir"

# code sniffer
alias drupalcs="phpcs --standard=Drupal --extensions='php,module,inc,install,test,profile,theme,css,info,txt,md'"
alias drupalcsp="phpcs --standard=DrupalPractice --extensions='php,module,inc,install,test,profile,theme,css,info,txt,md'"
alias drupalcbf="phpcbf --standard=Drupal --extensions='php,module,inc,install,test,profile,theme,css,info,txt,md'"

# lando shortcut

alias ldca="lando drush cc all"
alias ldr="lando drush rr"
alias ldcr="lando drush cr"
alias lfo="lando info"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment